From: Anil-Kumar Vengalil Date: Sun, 4 Oct 2009 11:44:07 +0000 (+0000) Subject: to prevent sfa-import from removing records with peer_autority from the registry... X-Git-Tag: sfa-0.9-3~4 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5c0f5c8505d7474475093e306c1b1e77a7753796;p=sfa.git to prevent sfa-import from removing records with peer_autority from the registry record --- 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: