X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FDeleteRole.py;h=a75ebc5216f8d5aa57bb13415c70e99ad8f83c96;hb=8b0a5128b2582b1cf41b123680e8d4ec270ac9a3;hp=e254a1302ef58d5b3b6a23896b4c30304fab7d27;hpb=d4c363a3ee55334eacd91f303adf6ecc20055d1e;p=plcapi.git diff --git a/PLC/Methods/DeleteRole.py b/PLC/Methods/DeleteRole.py index e254a13..a75ebc5 100644 --- a/PLC/Methods/DeleteRole.py +++ b/PLC/Methods/DeleteRole.py @@ -1,3 +1,5 @@ +# $Id$ +# $URL$ from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed @@ -25,7 +27,7 @@ class DeleteRole(Method): returns = Parameter(int, '1 if successful') - + def call(self, auth, role_id_or_name): roles = Roles(self.api, [role_id_or_name]) if not roles: @@ -33,6 +35,6 @@ class DeleteRole(Method): role = roles[0] role.delete() - self.object_ids = [role['role_id']] + self.event_objects = {'Role': [role['role_id']]} return 1