dont inculde full dns name in the node hrn
authorTony Mack <tmack@cs.princeton.edu>
Fri, 11 Sep 2009 03:04:43 +0000 (03:04 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Fri, 11 Sep 2009 03:04:43 +0000 (03:04 +0000)
sfa/plc/sfaImport.py

index f362984..d6691e7 100644 (file)
@@ -177,7 +177,7 @@ class sfaImport:
 
     def import_node(self, parent_hrn, node):
         AuthHierarchy = self.AuthHierarchy
-        nodename = node['hostname'].replace(".", "_")
+        nodename = node['hostname'].split(".")[0]
         nodename = cleanup_string(nodename)
 
         if not nodename: