From: Tony Mack Date: Thu, 9 Jul 2009 21:08:40 +0000 (+0000) Subject: fix bug in import_person X-Git-Tag: sfa-0.9-0@14641~83 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7bb2b49138fab96a34e5750afa3e3831349033ff;p=sfa.git fix bug in import_person --- diff --git a/sfa/plc/sfa-import-plc.py b/sfa/plc/sfa-import-plc.py index 2e0f9378..d2d80c3f 100755 --- a/sfa/plc/sfa-import-plc.py +++ b/sfa/plc/sfa-import-plc.py @@ -140,7 +140,7 @@ def import_person(parent_hrn, person): table = get_auth_table(parent_hrn) key_ids = [] - if 'key_ids' in person: + if 'key_ids' in person and person['key_ids']: key_ids = person["key_ids"] # get the user's private key from the SSH keys they have uploaded