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:
0weng
2026-01-23 14:58:46 -08:00
parent 85e731df47
commit 8668f2632a
2 changed files with 9 additions and 1 deletions

View File

@@ -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

View File

@@ -0,0 +1,5 @@
---
upgrade:
- |
When creating or listing projects, parent project will now be searched from
the same domain as the child project.