X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FDeleteKeyType.py;h=34d43394c783dbb01ae4578fd8bf586e505d48dd;hb=465305e5d5738d3fde3121a8d92d31db6c77871b;hp=2554cb030a2b50b76b1457805aa68639b7c70dff;hpb=3f30de17c58880c0f6f1d64ea573c3fe56e32a38;p=plcapi.git diff --git a/PLC/Methods/DeleteKeyType.py b/PLC/Methods/DeleteKeyType.py index 2554cb0..34d4339 100644 --- a/PLC/Methods/DeleteKeyType.py +++ b/PLC/Methods/DeleteKeyType.py @@ -21,10 +21,8 @@ class DeleteKeyType(Method): ] returns = Parameter(int, '1 if successful') - - event_type = 'Delete' - object_type = 'KeyType' - + + def call(self, auth, name): key_types = KeyTypes(self.api, [name]) if not key_types: