git://git.onelab.eu
/
monitor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1936411
)
fixes bug in myops for a node with different node_id. This occurs when
author
Stephen Soltesz
<soltesz@cs.princeton.edu>
Thu, 8 Apr 2010 19:34:35 +0000
(19:34 +0000)
committer
Stephen Soltesz
<soltesz@cs.princeton.edu>
Thu, 8 Apr 2010 19:34:35 +0000
(19:34 +0000)
deleting and then adding a node with the same name in plc.
monitor/wrapper/plccache.py
patch
|
blob
|
history
diff --git
a/monitor/wrapper/plccache.py
b/monitor/wrapper/plccache.py
index
7b1d258
..
72500ce
100755
(executable)
--- a/
monitor/wrapper/plccache.py
+++ b/
monitor/wrapper/plccache.py
@@
-182,8
+182,8
@@
def sync():
dbnode.hostname = node['hostname']
dbnode.date_checked = datetime.now()
dbnode.plc_node_stats = node
- deleteExtra(l_nodes, PlcNode, '
hostname', 'hostname
')
- deleteExtra(l_nodes, HistoryNodeRecord, '
hostname', 'hostname
')
+ deleteExtra(l_nodes, PlcNode, '
node_id', 'node_id
')
+ deleteExtra(l_nodes, HistoryNodeRecord, '
plc_nodeid', 'node_id
')
deleteExtra(l_nodes, FindbadNodeRecord, 'hostname', 'hostname')
session.flush()