From: Marc Fiuczynski Date: Tue, 21 Jul 2009 18:40:29 +0000 (+0000) Subject: fix bug in selection of special account ssh keys X-Git-Tag: PLCAPI-4.3-23~30 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=a74ba7ba88db85e1575101c62cbda610e773ba4f fix bug in selection of special account ssh keys --- diff --git a/PLC/Methods/GetSlivers.py b/PLC/Methods/GetSlivers.py index 1806387..d4dbba8 100644 --- a/PLC/Methods/GetSlivers.py +++ b/PLC/Methods/GetSlivers.py @@ -252,9 +252,8 @@ class v43GetSlivers(Method): site_keys = {} for site_person in site_persons: if site_person['enabled'] is False: continue - more = True for role in theroles: - if role in site_person['role_ids']: + if role in site_person['roles']: keys_filter = site_person['key_ids'] keys_return_filter = ['key_id', 'key', 'key_type'] keys = Keys(self.api, keys_filter, keys_return_filter)