mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Ensure os_project checks the right domain (#2519)
This commit is contained in:
parent
ec0fff49ea
commit
54d40fe557
1 changed files with 7 additions and 3 deletions
|
@ -178,6 +178,10 @@ def main():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
cloud = shade.openstack_cloud(**module.params)
|
cloud = shade.openstack_cloud(**module.params)
|
||||||
|
|
||||||
|
if domain:
|
||||||
|
project = cloud.get_project(name, domain_id=domain)
|
||||||
|
else:
|
||||||
project = cloud.get_project(name)
|
project = cloud.get_project(name)
|
||||||
|
|
||||||
if module.check_mode:
|
if module.check_mode:
|
||||||
|
|
Loading…
Reference in a new issue