X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FDeletePCUType.py;h=166c628d1d15fdeeef05c17bc5cc64903a377752;hb=f7ce7ce813d4c44502629820a3583f32a99a98f7;hp=f27e1179f58561654d8bc4ab6cb54d528f0fdc2f;hpb=9a608e111c7f8182f51753ea3f563ebc19eb4c71;p=plcapi.git diff --git a/PLC/Methods/DeletePCUType.py b/PLC/Methods/DeletePCUType.py index f27e117..166c628 100644 --- a/PLC/Methods/DeletePCUType.py +++ b/PLC/Methods/DeletePCUType.py @@ -10,7 +10,7 @@ class DeletePCUType(Method): """ Deletes a PCU type. - Returns 1 if successful, faults otherwise. + Returns 1 if successful, faults otherwise. """ roles = ['admin'] @@ -21,7 +21,7 @@ class DeletePCUType(Method): ] returns = Parameter(int, '1 if successful') - + def call(self, auth, pcu_type_id): pcu_types = PCUTypes(self.api, [pcu_type_id]) @@ -30,6 +30,6 @@ class DeletePCUType(Method): pcu_type = pcu_types[0] pcu_type.delete() - self.event_objects = {'PCUType': [pcu_type['pcu_type_id']]} + self.event_objects = {'PCUType': [pcu_type['pcu_type_id']]} return 1