X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FUpdateNodeGroup.py;h=5d31026e9f98ddec2f79b1b1f5605b69d63f9475;hb=34e1a55391f712d24f3932b98c7f26fcbd84baea;hp=f655c67cc65d4d59d4ba7756b956cb3764d1db02;hpb=e347fc823bbba9d88a3fddf07d5c21024dfd1e55;p=plcapi.git diff --git a/PLC/Methods/UpdateNodeGroup.py b/PLC/Methods/UpdateNodeGroup.py index f655c67..5d31026 100644 --- a/PLC/Methods/UpdateNodeGroup.py +++ b/PLC/Methods/UpdateNodeGroup.py @@ -38,5 +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