From 967b5ac047565bb4f94ab924844885a6543dc426 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 25 Jun 2013 08:49:16 +0200 Subject: [PATCH] be robust against running lxc containers without a timestamp --- system/Substrate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.43.0