From 0cc1e5aa2b7ff7fa55e6083a397c07fc1cc744dd Mon Sep 17 00:00:00 2001 From: Jamie Lennox Date: Tue, 11 Aug 2015 15:34:15 +1000 Subject: [PATCH] Use correct domain to find project When adding a role to a group and project OSC is mistakenly using the group_domain to find the project which will fail if the group_domain != project_domain. Change-Id: I4c1bec9b3b183c755be121b91f40e026d707192b Closes-Bug: #1483520 --- openstackclient/identity/v3/role.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstackclient/identity/v3/role.py b/openstackclient/identity/v3/role.py index 2ca58a2734..9243639e56 100644 --- a/openstackclient/identity/v3/role.py +++ b/openstackclient/identity/v3/role.py @@ -101,7 +101,7 @@ def _process_identity_and_resource_options(parsed_args, kwargs['project'] = common.find_project( identity_client_manager, parsed_args.project, - parsed_args.group_domain, + parsed_args.project_domain, ).id kwargs['os_inherit_extension_inherited'] = parsed_args.inherited return kwargs