From: Barış Metin Date: Wed, 10 Nov 2010 15:54:09 +0000 (+0000) Subject: check agg['plc_node_stats']. this was causing the monitor deployment on PLE fail... X-Git-Tag: monitor-3.1-1~2 X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=commitdiff_plain;h=dbb6bde37dbd9042af5abb57cc966e5f338776ae check agg['plc_node_stats']. this was causing the monitor deployment on PLE fail every now and again. --- diff --git a/web/MonitorWeb/monitorweb/controllers.py b/web/MonitorWeb/monitorweb/controllers.py index 149a397..6941327 100644 --- a/web/MonitorWeb/monitorweb/controllers.py +++ b/web/MonitorWeb/monitorweb/controllers.py @@ -340,7 +340,8 @@ class Root(controllers.RootController, MonitorXmlrpcServer): agg = node.__dict__.copy() else: agg = node.to_dict() - agg.update(agg['plc_node_stats']) + if agg['plc_node_stats']: + agg.update(agg['plc_node_stats']) if agg['install_date']: agg['install_date'] = time.mktime(time.strptime(agg['install_date'], "%a %b %d %H:%M:%S %Y")) if agg['kernel_version']: