From 092791dc2c3130dd854233e7d139968ac455e375 Mon Sep 17 00:00:00 2001 From: David Shrewsbury Date: Mon, 1 Feb 2016 16:48:55 -0500 Subject: [PATCH] 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 --- cloud/openstack/os_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/openstack/os_server.py b/cloud/openstack/os_server.py index c626d503d64..1e1d2d528cc 100644 --- a/cloud/openstack/os_server.py +++ b/cloud/openstack/os_server.py @@ -450,7 +450,7 @@ def _create_server(module, cloud): config_drive=module.params['config_drive'], ) for optional_param in ( - 'region_name', 'key_name', 'availability_zone', 'network', + 'key_name', 'availability_zone', 'network', 'volume_size', 'volumes'): if module.params[optional_param]: bootkwargs[optional_param] = module.params[optional_param]