From: Marc Fiuczynski <mef@cs.princeton.edu>
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/?a=commitdiff_plain;h=a74ba7ba88db85e1575101c62cbda610e773ba4f;p=plcapi.git

fix bug in selection of special account ssh keys
---

diff --git a/PLC/Methods/GetSlivers.py b/PLC/Methods/GetSlivers.py
index 1806387e..d4dbba8e 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)