more smartly sense for vplc instances now that we run build VMs and vplc's in the...
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 2 Apr 2015 16:18:57 +0000 (18:18 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 2 Apr 2015 16:18:57 +0000 (18:18 +0200)
system/Substrate.py

index d6d5424..c026049 100644 (file)
@@ -581,7 +581,10 @@ class PlcLxcBox (PlcBox):
         command = ['/root/lxc-driver.sh', '-c', 'sense_all']
         lxc_stat = self.backquote_ssh (command)
         for lxc_line in lxc_stat.split("\n"):
-            if not lxc_line: continue
+            if not lxc_line:
+                continue
+            if 'vplc' not in lxc_line:
+                continue
             lxcname = lxc_line.split(";")[0]
             pid = lxc_line.split(";")[1]
             timestamp = lxc_line.split(";")[2]