fix Sites bugs
[plcapi.git] / PLC / Methods / AddNodeType.py
index b390c6e..3e6167f 100644 (file)
@@ -1,5 +1,3 @@
-# $Id$
-# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -26,6 +24,6 @@ class AddNodeType(Method):
     def call(self, auth, name):
         node_type = NodeType(self.api)
         node_type['node_type'] = name
-        node_type.sync(insert = True)
+        node_type.sync(commit = True)
 
         return 1