From 5c0f5c8505d7474475093e306c1b1e77a7753796 Mon Sep 17 00:00:00 2001 From: Anil-Kumar Vengalil Date: Sun, 4 Oct 2009 11:44:07 +0000 Subject: [PATCH] to prevent sfa-import from removing records with peer_autority from the registry record --- sfa/plc/sfa-import-plc.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sfa/plc/sfa-import-plc.py b/sfa/plc/sfa-import-plc.py index 9a5c0cf3..7b0685e1 100755 --- a/sfa/plc/sfa-import-plc.py +++ b/sfa/plc/sfa-import-plc.py @@ -200,15 +200,14 @@ def main(): (hrn, 'user') not in existing_records or update_record: sfaImporter.import_person(site_hrn, person) - # remove stale records for (record_hrn, type) in existing_records.keys(): + record = existing_records[(record_hrn, type)] # if this is the interface name dont do anything - if record_hrn == import_auth: + if record_hrn == import_auth or record['peer_authority']: continue found = False - record = existing_records[(record_hrn, type)] if type == 'authority': for site in sites: -- 2.47.0