svn keywords
[plcapi.git] / PLC / Methods / DeleteBootState.py
index b516ef1..2339778 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
+# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -23,12 +25,13 @@ class DeleteBootState(Method):
 
     returns = Parameter(int, '1 if successful')
 
+
     def call(self, auth, name):
         boot_states = BootStates(self.api, [name])
         if not boot_states:
             raise PLCInvalidArgument, "No such boot state"
-        boot_state = boot_states.values()[0]
+        boot_state = boot_states[0]
 
         boot_state.delete()
-
+       
         return 1