suppress ssh host addition warning
authorrealraum <realraum@realraum.at>
Mon, 5 Jul 2010 05:31:14 +0000 (05:31 +0000)
committerrealraum <realraum@realraum.at>
Mon, 5 Jul 2010 05:31:14 +0000 (05:31 +0000)
track-presence.py

index 789a75c..9f0aa66 100755 (executable)
@@ -178,7 +178,8 @@ def trackSensorStatusThread(uwscfg,status_tracker,connection_listener):
         if len(line) < 1:
           raise Exception("EOF on Subprocess, daemon seems to have quit, returncode: %d",sshp.returncode)
         logging.debug("trackSensorStatusThread: Got Line: " + line)
-        connection_listener.distributeData(line)
+        if not line.startswith("Warning: Permanently added"):
+          connection_listener.distributeData(line)
         m = RE_MOVEMENT.match(line)
         if not m is None:
           status_tracker.movementDetected()