fix bug in import_person
authorTony Mack <tmack@cs.princeton.edu>
Thu, 9 Jul 2009 21:08:40 +0000 (21:08 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Thu, 9 Jul 2009 21:08:40 +0000 (21:08 +0000)
sfa/plc/sfa-import-plc.py

index 2e0f937..d2d80c3 100755 (executable)
@@ -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