git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
639f433
)
dont overwrite value of root_auth
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 17 Oct 2011 19:48:52 +0000
(15:48 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 17 Oct 2011 19:48:52 +0000
(15:48 -0400)
sfa/plc/sfa-import-plc.py
patch
|
blob
|
history
diff --git
a/sfa/plc/sfa-import-plc.py
b/sfa/plc/sfa-import-plc.py
index
3c00588
..
95793a1
100755
(executable)
--- 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)