Skip to content

Commit 252f9ff

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Identity: Use project's domain for its parent"
2 parents 62d1c3d + 8668f26 commit 252f9ff

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

openstackclient/identity/v3/project.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ def take_action(self, parsed_args):
137137
kwargs['parent_id'] = common.find_project_id_sdk(
138138
identity_client,
139139
parsed_args.parent,
140+
domain_name_or_id=domain,
140141
)
141142

142143
kwargs['is_enabled'] = parsed_args.enabled
@@ -310,7 +311,9 @@ def take_action(self, parsed_args):
310311

311312
if parsed_args.parent:
312313
parent_id = common.find_project_id_sdk(
313-
identity_client, parsed_args.parent
314+
identity_client,
315+
parsed_args.parent,
316+
domain_name_or_id=domain_id,
314317
)
315318
kwargs['parent_id'] = parent_id
316319

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
upgrade:
3+
- |
4+
When creating or listing projects, parent project will now be searched from
5+
the same domain as the child project.

0 commit comments

Comments
 (0)