mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix for os_server module when specifying region
Fix the OpenStack os_server module for when region_name is specified. This should not be passed through to the shade create_server() call as it's only used with the auth parameters. Fixes bug: https://github.com/ansible/ansible-modules-core/issues/2797
This commit is contained in:
parent
4288150270
commit
66c83fc788
1 changed files with 1 additions and 1 deletions
|
@ -450,7 +450,7 @@ def _create_server(module, cloud):
|
||||||
config_drive=module.params['config_drive'],
|
config_drive=module.params['config_drive'],
|
||||||
)
|
)
|
||||||
for optional_param in (
|
for optional_param in (
|
||||||
'region_name', 'key_name', 'availability_zone', 'network',
|
'key_name', 'availability_zone', 'network',
|
||||||
'volume_size', 'volumes'):
|
'volume_size', 'volumes'):
|
||||||
if module.params[optional_param]:
|
if module.params[optional_param]:
|
||||||
bootkwargs[optional_param] = module.params[optional_param]
|
bootkwargs[optional_param] = module.params[optional_param]
|
||||||
|
|
Loading…
Reference in a new issue