take out the code that computes a new key - for use by the dummynet boot medium creat...
[plcapi.git] / PLC / Methods / DeleteKeyType.py
index 2a25c71..e09e5c5 100644 (file)
@@ -21,12 +21,13 @@ class DeleteKeyType(Method):
         ]
 
     returns = Parameter(int, '1 if successful')
-
+    
+    
     def call(self, auth, name):
         key_types = KeyTypes(self.api, [name])
         if not key_types:
             raise PLCInvalidArgument, "No such key type"
-        key_type = key_types.values()[0]
+        key_type = key_types[0]
 
         key_type.delete()