fix Sites bugs
[plcapi.git] / PLC / Methods / AddNodeType.py
index 034ed41..3e6167f 100644 (file)
@@ -1,5 +1,3 @@
-# $Id$
-# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -22,10 +20,10 @@ class AddNodeType(Method):
 
     returns = Parameter(int, '1 if successful')
 
-    
+
     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