From 8a02b5d702f024264706b6dc93cddc950a0ea2c1 Mon Sep 17 00:00:00 2001 From: Tristan de Cacqueray Date: Mon, 5 Dec 2016 16:27:29 +0000 Subject: [PATCH] Use parameters in os_stack update (#3560) This change makes os_stack module idempotent. Otherwise, re-use of the module fails with: Error updating stack: ERROR: The Parameter (...) was not provided. Fixes #3165. --- lib/ansible/modules/extras/cloud/openstack/os_stack.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/cloud/openstack/os_stack.py b/lib/ansible/modules/extras/cloud/openstack/os_stack.py index 503ae635dbb..3d3cb9be07e 100644 --- a/lib/ansible/modules/extras/cloud/openstack/os_stack.py +++ b/lib/ansible/modules/extras/cloud/openstack/os_stack.py @@ -180,7 +180,8 @@ def _update_stack(module, stack, cloud): environment_files=module.params['environment'], timeout=module.params['timeout'], rollback=module.params['rollback'], - wait=module.params['wait']) + wait=module.params['wait'], + **module.params['parameters']) if stack['stack_status'] == 'UPDATE_COMPLETE': return stack