Merge pull request #2939 from Shrews/os_server

Fix for os_server module when specifying region
This commit is contained in:
Brian Coca 2016-02-29 23:58:24 -05:00
commit b9020155ee

View file

@ -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]