- import Debug.log
[plcapi.git] / PLC / Methods / DeleteNodeGroup.py
index 59615f3..7606607 100644 (file)
@@ -23,6 +23,7 @@ class DeleteNodeGroup(Method):
 
     returns = Parameter(int, '1 if successful')
 
+
     def call(self, auth, node_group_id_or_name):
         # Get account information
         nodegroups = NodeGroups(self.api, [node_group_id_or_name])
@@ -33,4 +34,8 @@ class DeleteNodeGroup(Method):
 
         nodegroup.delete()
 
+       # Logging variables
+       self.object_ids = [nodegroup['nodegroup_id']]
+       self.message  = 'Node group %d deleted' % nodegroup['nodegroup_id']
         return 1