From: Tony Mack Date: Fri, 11 Sep 2009 03:04:43 +0000 (+0000) Subject: dont inculde full dns name in the node hrn X-Git-Tag: sfa-0.9-2~42 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=9b797da9df5269c5f4992c3bc1845e02a6ffd53f;p=sfa.git dont inculde full dns name in the node hrn --- diff --git a/sfa/plc/sfaImport.py b/sfa/plc/sfaImport.py index f362984f..d6691e77 100644 --- a/sfa/plc/sfaImport.py +++ b/sfa/plc/sfaImport.py @@ -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: