summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan de Cacqueray <tdecacqu@redhat.com>2016-12-05 16:27:29 +0000
committerRyan Brown <sb@ryansb.com>2016-12-05 11:27:29 -0500
commit659782dbc609bd8b1cc2fd2d50c58b324c3ed454 (patch)
tree95dee505802f1d880e7c8006ea7125c1d419bed8
parent936086fe1bd961af7ca56e5685bc4cda611a91ea (diff)
downloadansible-modules-extras-659782dbc609bd8b1cc2fd2d50c58b324c3ed454.tar.gz
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.
-rw-r--r--cloud/openstack/os_stack.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloud/openstack/os_stack.py b/cloud/openstack/os_stack.py
index 503ae635..3d3cb9be 100644
--- a/cloud/openstack/os_stack.py
+++ b/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