From e1d0769008da2904ae12d1ca0020ef3f09336439 Mon Sep 17 00:00:00 2001 From: boucherv Date: Mon, 11 Jan 2016 11:33:18 +0100 Subject: bugfix: get admin role on joid installer Change-Id: I8d6227441ca824cb7cf910e8615d4e7b5cf816c6 Signed-off-by: boucherv --- testcases/vIMS/CI/vIMS.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/testcases/vIMS/CI/vIMS.py b/testcases/vIMS/CI/vIMS.py index a729e233e..94679f02a 100644 --- a/testcases/vIMS/CI/vIMS.py +++ b/testcases/vIMS/CI/vIMS.py @@ -216,8 +216,12 @@ def main(): logger.error("Error : Failed to create %s tenant" % TENANT_NAME) exit(-1) - role_name = "admin" - role_id = functest_utils.get_role_id(keystone, role_name) + roles_name = ["admin", "Admin"] + role_id = '' + for role_name in roles_name: + if role_id == '': + role_id = functest_utils.get_role_id(keystone, role_name) + if role_id == '': logger.error("Error : Failed to get id for %s role" % role_name) -- cgit 1.2.3-korg