X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmanagers%2Fregistry_manager_pl.py;h=f08e18d0ce3f2ae3c55844f4aac9c1e39a1a9241;hb=5488cc501d7ee694bfc748b3dd9eee2a8c5247dd;hp=878b9566e97f892879bcab197e202879178abae8;hpb=b5da24d8aa5186bf6e8246c926a1763242f76dae;p=sfa.git diff --git a/sfa/managers/registry_manager_pl.py b/sfa/managers/registry_manager_pl.py index 878b9566..f08e18d0 100644 --- a/sfa/managers/registry_manager_pl.py +++ b/sfa/managers/registry_manager_pl.py @@ -176,7 +176,7 @@ def register(api, record): uuid = create_uuid() pkey = Keypair(create=True) if 'key' in record and record['key']: - if isinstance(record['key'], list): + if isinstance(record['key'], types.ListType): pub_key = record['key'][0] else: pub_key = record['key'] @@ -310,7 +310,7 @@ def update(api, record_dict): keys = person['key_ids'] keys = api.plshell.GetKeys(api.plauth, person['key_ids']) key_exists = False - if isinstance(new_record['key'], list): + if isinstance(new_record['key'], types.ListType): new_key = new_record['key'][0] else: new_key = new_record['key']