git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- added 'message' instance variable (high level description of this event)
[plcapi.git]
/
PLC
/
Methods
/
UpdateNodeGroup.py
diff --git
a/PLC/Methods/UpdateNodeGroup.py
b/PLC/Methods/UpdateNodeGroup.py
index
9d7798c
..
5d31026
100644
(file)
--- a/
PLC/Methods/UpdateNodeGroup.py
+++ b/
PLC/Methods/UpdateNodeGroup.py
@@
-38,6
+38,9
@@
class UpdateNodeGroup(Method):
nodegroup.update(nodegroup_fields)
nodegroup.sync()
+
+ # Logging variables
self.object_ids = [nodegroup['nodegroup_id']]
-
+ self.message = 'Node group %d updated: %s' % \
+ (nodegroup['nodegroup_id'], ", ".join(nodegroup_fields.keys()))
return 1