Merge remote-tracking branch 'origin/pycurl' into planetlab-4_0-branch
[plcapi.git] / PLC / Methods / AddBootState.py
index c8c916c..fc75254 100644 (file)
@@ -20,13 +20,10 @@ class AddBootState(Method):
 
     returns = Parameter(int, '1 if successful')
 
-    event_type = 'Add'
-    object_type = 'BootState'
-    object_ids = []
     
     def call(self, auth, name):
         boot_state = BootState(self.api)
         boot_state['boot_state'] = name
-        boot_state.sync()
+        boot_state.sync(insert = True)
 
         return 1