get rid of svn keywords once and for good
[plcapi.git] / PLC / Methods / DeleteConfFileFromNodeGroup.py
index f832faa..243a1a1 100644 (file)
@@ -1,4 +1,3 @@
-# $Id$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -27,24 +26,24 @@ class DeleteConfFileFromNodeGroup(Method):
 
 
     def call(self, auth, conf_file_id, nodegroup_id_or_name):
-       # Get configuration file
+        # Get configuration file
         conf_files = ConfFiles(self.api, [conf_file_id])
         if not conf_files:
             raise PLCInvalidArgument, "No such configuration file"
         conf_file = conf_files[0]
 
         # Get nodegroup
-       nodegroups = NodeGroups(self.api, [nodegroup_id_or_name])
-       if not nodegroups:
-               raise PLCInvalidArgument, "No such nodegroup"
-       nodegroup = nodegroups[0]
-       
-       # Link configuration file to nodegroup
+        nodegroups = NodeGroups(self.api, [nodegroup_id_or_name])
+        if not nodegroups:
+            raise PLCInvalidArgument, "No such nodegroup"
+        nodegroup = nodegroups[0]
+
+        # Link configuration file to nodegroup
         if nodegroup['nodegroup_id'] in conf_file['nodegroup_ids']:
             conf_file.remove_nodegroup(nodegroup)
 
         # Log affected objects
-        self.event_objects = {'ConfFile': [conf_file_id], 
-                             'NodeGroup': [nodegroup['nodegroup_id']]}
+        self.event_objects = {'ConfFile': [conf_file_id],
+                              'NodeGroup': [nodegroup['nodegroup_id']]}
 
         return 1