needed for creating leases in python3
[tests.git] / system / Substrate.py
index b9ffc66..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]
@@ -963,7 +966,7 @@ class TestBox(Box):
             header ("No {} on {}".format(msg, self.line()))
         else:
             header ("{} on {}".format(msg, self.line()))
-            instances.sort(sort=timestamp_sort)
+            instances.sort(key=timestamp_key)
             for i in instances:
                 print(i.line())
         # show 'starting' regardless of verbose