mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix instantiation of openstack_cloud object in os_project
The os_project module instantiates the openstack cloud object by passing the module params kwargs. As the params contain a key named 'domain_id', this is used for domain in the OpenStack connection, instead of the domain value the user specifies on the OSCC clouds.yaml or OpenStack envvars. This fix corrects this by popping the 'domain_id' key, so it we keep the value but it's not passed later on module.params.
This commit is contained in:
parent
17a6cea512
commit
9fea94b5bf
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ def main():
|
||||||
|
|
||||||
name = module.params['name']
|
name = module.params['name']
|
||||||
description = module.params['description']
|
description = module.params['description']
|
||||||
domain = module.params['domain_id']
|
domain = module.params.pop('domain_id')
|
||||||
enabled = module.params['enabled']
|
enabled = module.params['enabled']
|
||||||
state = module.params['state']
|
state = module.params['state']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue