From: Thierry Parmentelat Date: Tue, 25 Jun 2013 06:49:16 +0000 (+0200) Subject: be robust against running lxc containers without a timestamp X-Git-Tag: tests-5.2-6~1 X-Git-Url: http://git.onelab.eu/?p=tests.git;a=commitdiff_plain;h=967b5ac047565bb4f94ab924844885a6543dc426 be robust against running lxc containers without a timestamp --- diff --git a/system/Substrate.py b/system/Substrate.py index 773e750..ff77940 100644 --- a/system/Substrate.py +++ b/system/Substrate.py @@ -634,7 +634,8 @@ class PlcLxcBox (PlcBox): pid=lxc_line.split(";")[1] timestamp=lxc_line.split(";")[2] self.add_lxc(lxcname,pid) - timestamp=int(timestamp) + try: timestamp=int(timestamp) + except: timestamp=0 p=self.plc_instance_by_lxcname(lxcname) if not p: print 'WARNING zombie plc',self.hostname,lxcname