From d0f743e245e0bb24d7ed1016bcc6e61d1e558a95 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 17 Oct 2011 15:48:52 -0400 Subject: [PATCH] dont overwrite value of root_auth --- sfa/plc/sfa-import-plc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sfa/plc/sfa-import-plc.py b/sfa/plc/sfa-import-plc.py index 3c005881..95793a10 100755 --- a/sfa/plc/sfa-import-plc.py +++ b/sfa/plc/sfa-import-plc.py @@ -172,9 +172,9 @@ def main(): 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) -- 2.43.0