From 530dee59f3804085473f13eb9fffd34b6480fc01 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Sun, 20 Nov 2011 17:23:05 -0500 Subject: [PATCH] import script will create top level auth keys if they dont exist --- sfa/importer/sfa-import-plc.py | 4 +--- sfa/importer/sfaImport.py | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sfa/importer/sfa-import-plc.py b/sfa/importer/sfa-import-plc.py index 6873f48a..15a5bc6d 100755 --- a/sfa/importer/sfa-import-plc.py +++ b/sfa/importer/sfa-import-plc.py @@ -80,9 +80,7 @@ def main(): table.create() # create root authority - sfaImporter.create_top_level_auth_records(root_auth) - if not root_auth == interface_hrn: - sfaImporter.create_top_level_auth_records(interface_hrn) + sfaImporter.create_top_level_auth_records(interface_hrn) # create s user record for the slice manager sfaImporter.create_sm_client_record() diff --git a/sfa/importer/sfaImport.py b/sfa/importer/sfaImport.py index 4c5b5c7e..568fce84 100644 --- a/sfa/importer/sfaImport.py +++ b/sfa/importer/sfaImport.py @@ -75,6 +75,8 @@ class sfaImport: if not parent_hrn == hrn: self.create_top_level_auth_records(parent_hrn) + # enxure key and cert exists: + self.AuthHierarchy.create_top_level_auth(hrn) # create the db record if it doesnt already exist auth_info = self.AuthHierarchy.get_auth_info(hrn) table = SfaTable() -- 2.43.0