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.
This commit is contained in:
Tristan de Cacqueray 2016-12-05 16:27:29 +00:00 committed by Matt Clay
parent 7a2d1a4210
commit 8a02b5d702

View file

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