make cloudformation module accept template_parameters from command line

Passing cloudformation template_parameters on the command line
like so was failing:

    ansible localhost -m cloudformation -a "...template_parameters=foo=5,bar=4..."
This commit is contained in:
Brian Cavagnolo 2013-10-31 16:52:53 -07:00
parent dd6af369af
commit c42d987788

View file

@ -159,7 +159,7 @@ def main():
module = AnsibleModule( module = AnsibleModule(
argument_spec=dict( argument_spec=dict(
stack_name=dict(required=True), stack_name=dict(required=True),
template_parameters=dict(required=True), template_parameters=dict(required=True, type='dict'),
region=dict(aliases=['aws_region', 'ec2_region'], required=True, choices=AWS_REGIONS), region=dict(aliases=['aws_region', 'ec2_region'], required=True, choices=AWS_REGIONS),
state=dict(default='present', choices=['present', 'absent']), state=dict(default='present', choices=['present', 'absent']),
template=dict(default=None, required=True), template=dict(default=None, required=True),