X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FDeleteRole.py;h=a75ebc5216f8d5aa57bb13415c70e99ad8f83c96;hb=f7ce7ce813d4c44502629820a3583f32a99a98f7;hp=fb5a515757e9f3111ed0f5f9b2a171a7da6a8223;hpb=9a608e111c7f8182f51753ea3f563ebc19eb4c71;p=plcapi.git diff --git a/PLC/Methods/DeleteRole.py b/PLC/Methods/DeleteRole.py index fb5a515..a75ebc5 100644 --- a/PLC/Methods/DeleteRole.py +++ b/PLC/Methods/DeleteRole.py @@ -27,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: @@ -35,6 +35,6 @@ class DeleteRole(Method): role = roles[0] role.delete() - self.event_objects = {'Role': [role['role_id']]} + self.event_objects = {'Role': [role['role_id']]} return 1