use only leftmost part of dns name when creating node hrns
authorScott Baker <bakers@cs.arizona.edu>
Thu, 5 Mar 2009 01:23:49 +0000 (01:23 +0000)
committerScott Baker <bakers@cs.arizona.edu>
Thu, 5 Mar 2009 01:23:49 +0000 (01:23 +0000)
geni/gimport.py

index 45dbb44..d9c871b 100755 (executable)
@@ -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()