if node_id not in nodes_dict:
continue
node = nodes_dict[node_id]
- root_auth = get_authority(site_hrn)
+ site_auth = get_authority(site_hrn)
site_name = get_leaf(site_hrn)
- hrn = hostname_to_hrn(root_auth, site_name, node['hostname'])
+ hrn = hostname_to_hrn(site_auth, site_name, node['hostname'])
if hrn not in existing_hrns or \
(hrn, 'node') not in existing_records:
sfaImporter.import_node(hrn, node)