X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FDeleteConfFile.py;h=f3d0471a3b8238e68321493559c8d251f18661c5;hb=71a2b50be6b8cea74ae3f55afecbff3b28e5798d;hp=181de69c3e5c1b8dcc8dc5cc5269f74c6cf7b669;hpb=286cdfc25f6ef8fd3e0ed59a175bcf801b14038a;p=plcapi.git diff --git a/PLC/Methods/DeleteConfFile.py b/PLC/Methods/DeleteConfFile.py index 181de69..f3d0471 100644 --- a/PLC/Methods/DeleteConfFile.py +++ b/PLC/Methods/DeleteConfFile.py @@ -1,4 +1,5 @@ -# $Id# +# $Id$ +# $URL$ from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed @@ -20,7 +21,7 @@ class DeleteConfFile(Method): ] returns = Parameter(int, '1 if successful') - + def call(self, auth, conf_file_id): conf_files = ConfFiles(self.api, [conf_file_id]) @@ -29,6 +30,6 @@ class DeleteConfFile(Method): conf_file = conf_files[0] conf_file.delete() - self.event_objects = {'ConfFile': [conf_file['conf_file_id']]} + self.event_objects = {'ConfFile': [conf_file['conf_file_id']]} return 1