Merge "Identity: Use project's domain for its parent"

This commit is contained in:
Zuul
2026-02-13 15:21:39 +00:00
committed by Gerrit Code Review
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.