From 04dd4013ae7ba929428ad410e34d81743fe1f953 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 21 Sep 2011 11:13:27 +0200 Subject: [PATCH] fix parsing of timestamp --- system/Substrate.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/system/Substrate.py b/system/Substrate.py index bf8551c..06eaf3e 100644 --- a/system/Substrate.py +++ b/system/Substrate.py @@ -455,10 +455,11 @@ class PlcBox (Box): ts_lines=self.backquote_ssh(command,trash_err=True).split('\n') for ts_line in ts_lines: if not ts_line.strip(): continue - # expect /vservers//timestamp: + # expect /vservers/.timestamp: try: - (_,__,vservername,tail)=ts_line.split('/') - (_,timestamp)=tail.split(':') + (ts_file,timestamp)=ts_line.split(':') + ts_file=os.path.basename(ts_file) + (vservername,_)=os.path.splitext(ts_file) timestamp=int(timestamp) p=self.plc_instance_by_vservername(vservername) if not p: -- 2.47.0