fix bug in import_node
authorTony Mack <tmack@cs.princeton.edu>
Tue, 4 Aug 2009 01:01:39 +0000 (01:01 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 4 Aug 2009 01:01:39 +0000 (01:01 +0000)
sfa/plc/sfaImport.py

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