propagate caller in more places
[plcapi.git] / PLC / Methods / DeleteNetworkType.py
index f26232b..db6d0f3 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
+# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -23,11 +25,12 @@ class DeleteNetworkType(Method):
 
     returns = Parameter(int, '1 if successful')
 
+
     def call(self, auth, name):
         network_types = NetworkTypes(self.api, [name])
         if not network_types:
             raise PLCInvalidArgument, "No such network type"
-        network_type = network_types.values()[0]
+        network_type = network_types[0]
 
         network_type.delete()