X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=monitor%2Fwrapper%2Fplccache.py;h=dc62d0dddb9149bb1cd9572d87d6a1b271967bf3;hb=6dfabcd2ef4d6a9a4cf91e71fc5edfe8a005a417;hp=75ca49b35ce19e07bcd33b86d55637deca7b4d3a;hpb=9cae0ec50c0201aa21dad28413402037816744bd;p=monitor.git diff --git a/monitor/wrapper/plccache.py b/monitor/wrapper/plccache.py index 75ca49b..dc62d0d 100755 --- a/monitor/wrapper/plccache.py +++ b/monitor/wrapper/plccache.py @@ -159,6 +159,7 @@ def sync(): dbpcu.plc_pcu_stats = pcu deleteExtra(l_pcus, PlcPCU, 'pcu_id', 'pcu_id') deleteExtra(l_pcus, HistoryPCURecord, 'plc_pcuid', 'pcu_id') + deleteExtra(l_pcus, FindbadPCURecord, 'plc_pcuid', 'pcu_id') session.flush() print "sync nodes" @@ -169,6 +170,7 @@ def sync(): dbnode.plc_node_stats = node deleteExtra(l_nodes, PlcNode, 'hostname', 'hostname') deleteExtra(l_nodes, HistoryNodeRecord, 'hostname', 'hostname') + deleteExtra(l_nodes, FindbadNodeRecord, 'hostname', 'hostname') session.flush() init() @@ -176,6 +178,6 @@ def sync(): return if __name__ == '__main__': - profile.run('sync()') + sync() else: init()