X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=PLC%2FMethods%2FAddNode.py;fp=PLC%2FMethods%2FAddNode.py;h=a1e8337a10efcdab59ee0e39b26fd8aedf92314a;hb=f7ce7ce813d4c44502629820a3583f32a99a98f7;hp=f2ff6617c4f41d37bc283b0c8636b2091c7d7a21;hpb=9a608e111c7f8182f51753ea3f563ebc19eb4c71;p=plcapi.git diff --git a/PLC/Methods/AddNode.py b/PLC/Methods/AddNode.py index f2ff661..a1e8337 100644 --- a/PLC/Methods/AddNode.py +++ b/PLC/Methods/AddNode.py @@ -76,7 +76,7 @@ class AddNode(Method): # since hostname was specified lets add the 'hrn' node tag root_auth = self.api.config.PLC_HRN_ROOT login_base = site['login_base'] - tags['hrn'] = hostname_to_hrn(root_auth, login_base, node['hostname']) + tags['hrn'] = hostname_to_hrn(root_auth, login_base, node['hostname']) for (tagname,value) in tags.iteritems(): # the tagtype instance is assumed to exist, just check that @@ -89,7 +89,7 @@ class AddNode(Method): UpdateNodeTag(self.api).__call__(auth,node_tags[0]['node_tag_id'],value) self.event_objects = {'Site': [site['site_id']], - 'Node': [node['node_id']]} + 'Node': [node['node_id']]} self.message = "Node %d=%s created" % (node['node_id'],node['hostname']) - + return node['node_id']