X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=sfa%2Fplc%2Fsfa-import-plc.py;h=18727c6a094cc71c712bc11cc01f2d23314eb718;hb=ca37ec53ab3e64ad0c87e69e05697fd7f0302539;hp=814fffadf808bfb43bb48dd4057491f0d19c0cb6;hpb=d88ac8f7ae64fd715146773b8f863405ac1466ad;p=sfa.git diff --git a/sfa/plc/sfa-import-plc.py b/sfa/plc/sfa-import-plc.py index 814fffad..18727c6a 100755 --- a/sfa/plc/sfa-import-plc.py +++ b/sfa/plc/sfa-import-plc.py @@ -31,7 +31,6 @@ from sfa.trust.gid import create_uuid from sfa.plc.sfaImport import sfaImport def process_options(): - global hrn (options, args) = getopt.getopt(sys.argv[1:], '', []) for opt in options: @@ -68,8 +67,6 @@ def main(): if config.SFA_API_DEBUG: sfaImporter.logger.setLevel(logging.DEBUG) shell = sfaImporter.shell plc_auth = sfaImporter.plc_auth - AuthHierarchy = sfaImporter.AuthHierarchy - TrustedRoots = sfaImporter.TrustedRoots table = SfaTable() if not table.exists(): @@ -81,8 +78,8 @@ def main(): sfaImporter.create_top_level_auth_records(interface_hrn) sfaImporter.logger.info("Import: adding " + interface_hrn + " to trusted list") - authority = AuthHierarchy.get_auth_info(interface_hrn) - TrustedRoots.add_gid(authority.get_gid_object()) + authority = sfaImporter.AuthHierarchy.get_auth_info(interface_hrn) + sfaImporter.TrustedRoots.add_gid(authority.get_gid_object()) if ".vini" in interface_hrn and interface_hrn.endswith('vini'): # create a fake internet2 site first