From 1aef8026f0cbe7e6fdc6e210e55f9093c29caae8 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 10 Dec 2012 17:46:48 -0500 Subject: [PATCH] Fix type error --- PLC/Method.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.47.0