From dbb6bde37dbd9042af5abb57cc966e5f338776ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Wed, 10 Nov 2010 15:54:09 +0000 Subject: [PATCH] check agg['plc_node_stats']. this was causing the monitor deployment on PLE fail every now and again. --- web/MonitorWeb/monitorweb/controllers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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']: -- 2.43.0