check agg['plc_node_stats']. this was causing the monitor deployment on PLE fail...
Barış Metin [Wed, 10 Nov 2010 15:54:09 +0000 (15:54 +0000)]
web/MonitorWeb/monitorweb/controllers.py

index 149a397..6941327 100644 (file)
@@ -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']: