From daa16865e07defd033e3c7757e40d35a372f11fb Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 2 Apr 2015 18:18:57 +0200 Subject: [PATCH] more smartly sense for vplc instances now that we run build VMs and vplc's in the same physical host --- system/Substrate.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/system/Substrate.py b/system/Substrate.py index d6d5424..c026049 100644 --- a/system/Substrate.py +++ b/system/Substrate.py @@ -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] -- 2.43.0