From: Tony Mack Date: Mon, 10 Dec 2012 22:46:48 +0000 (-0500) Subject: Fix type error X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=1aef8026f0cbe7e6fdc6e210e55f9093c29caae8;p=plcapi.git Fix type error --- diff --git a/PLC/Method.py b/PLC/Method.py index 60f08716..8445379b 100644 --- a/PLC/Method.py +++ b/PLC/Method.py @@ -331,7 +331,7 @@ w self.caller = persons[0] keystone_user = self.api.client_shell.keystone.users.find(id=self.caller['keystone_id']) self.caller_tenant = self.api.client_shell.keystone.tenants.find(name=auth['Tenant']) - caller_roles = self.api.client_shell.keystone.roles.roles_for_user(self.caller, self.caller_tenant) + caller_roles = self.api.client_shell.keystone.roles.roles_for_user(keystone_user, self.caller_tenant) role_names = [role.name for role in caller_roles] self.caller['roles'] = role_names if not set(role_names).intersection(self.roles):