From: Barış Metin Date: Mon, 26 Apr 2010 08:59:53 +0000 (+0000) Subject: handle hostname changes X-Git-Tag: Monitor-3.0-33~2 X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=commitdiff_plain;h=ba879e2b3d0b404492fe35a74c4a40f6d95452e1 handle hostname changes --- diff --git a/monitor/wrapper/plccache.py b/monitor/wrapper/plccache.py index 72500ce..dbfb7e0 100755 --- a/monitor/wrapper/plccache.py +++ b/monitor/wrapper/plccache.py @@ -184,6 +184,8 @@ def sync(): dbnode.plc_node_stats = node deleteExtra(l_nodes, PlcNode, 'node_id', 'node_id') deleteExtra(l_nodes, HistoryNodeRecord, 'plc_nodeid', 'node_id') + deleteExtra(l_nodes, PlcNode, 'hostname', 'hostname') + deleteExtra(l_nodes, HistoryNodeRecord, 'hostname', 'hostname') deleteExtra(l_nodes, FindbadNodeRecord, 'hostname', 'hostname') session.flush()