Identity: Use project's domain for its parent
When creating or listing projects, search for parent project in the same domain as the child project. Change-Id: I1912f06df353a64eb0573f080ac9ab067cb90632 Signed-off-by: 0weng <oweng@osuosl.org>
This commit is contained in:
@@ -137,6 +137,7 @@ class CreateProject(command.ShowOne):
|
||||
kwargs['parent_id'] = common.find_project_id_sdk(
|
||||
identity_client,
|
||||
parsed_args.parent,
|
||||
domain_name_or_id=domain,
|
||||
)
|
||||
|
||||
kwargs['is_enabled'] = parsed_args.enabled
|
||||
@@ -310,7 +311,9 @@ class ListProject(command.Lister):
|
||||
|
||||
if parsed_args.parent:
|
||||
parent_id = common.find_project_id_sdk(
|
||||
identity_client, parsed_args.parent
|
||||
identity_client,
|
||||
parsed_args.parent,
|
||||
domain_name_or_id=domain_id,
|
||||
)
|
||||
kwargs['parent_id'] = parent_id
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
When creating or listing projects, parent project will now be searched from
|
||||
the same domain as the child project.
|
||||
Reference in New Issue
Block a user