- subclass correct class
[plcapi.git] / PLC / Methods / DeleteNodeNetwork.py
index d14a5b1..6cba6a6 100644 (file)
@@ -24,7 +24,9 @@ class DeleteNodeNetwork(Method):
 
     returns = Parameter(int, '1 if successful')
 
+
     def call(self, auth, nodenetwork_id):
+
         # Get node network information
         nodenetworks = NodeNetworks(self.api, [nodenetwork_id])
         if not nodenetworks:
@@ -48,4 +50,8 @@ class DeleteNodeNetwork(Method):
 
         nodenetwork.delete()
 
+       # Logging variables
+       self.object_ids = [nodenetwork['nodenetwork_id']]
+       self.message = "Node network %d deleted" % nodenetwork['nodenetwork_id']
+
         return 1