fix Sites bugs
[plcapi.git] / PLC / Methods / AddNodeType.py
index d06b7cb..3e6167f 100644 (file)
@@ -24,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