From 6035211a546159b0fabfcd4a1c6655aeec9ec679 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Thu, 5 Mar 2009 01:23:49 +0000 Subject: [PATCH] use only leftmost part of dns name when creating node hrns --- geni/gimport.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/geni/gimport.py b/geni/gimport.py index 45dbb444..d9c871b4 100755 --- a/geni/gimport.py +++ b/geni/gimport.py @@ -236,7 +236,7 @@ def import_slice(parent_hrn, slice): def import_node(parent_hrn, node): AuthHierarchy = Hierarchy() - nodename = node['hostname'] + nodename = node['hostname'].split(".")[0] nodename = cleanup_string(nodename) if not nodename: @@ -336,6 +336,8 @@ def main(): process_options() + print "Base Directory: ", config.GENI_BASE_DIR + AuthHierarchy = Hierarchy() TrustedRoots = TrustedRootList() -- 2.47.0