From b803aac6ec79b71a340b0480f4e2beb24c6258b9 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Thu, 24 Oct 2013 09:18:14 -0400 Subject: [PATCH] Fixes #4500 change ec2 module params to type=bool Revert 4833c2fdf06352835742cacac12043a1e5f0904d --- lib/ansible/module_common.py | 4 ++-- library/cloud/ec2 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/module_common.py b/lib/ansible/module_common.py index 8707bf4fc1..648af8ff28 100644 --- a/lib/ansible/module_common.py +++ b/lib/ansible/module_common.py @@ -40,8 +40,8 @@ MODULE_ARGS = <> MODULE_LANG = <> MODULE_COMPLEX_ARGS = <> -BOOLEANS_TRUE = ['yes', 'on', '1', 'true', 'True', 1] -BOOLEANS_FALSE = ['no', 'off', '0', 'false', 'False', 0] +BOOLEANS_TRUE = ['yes', 'on', '1', 'true', 1] +BOOLEANS_FALSE = ['no', 'off', '0', 'false', 0] BOOLEANS = BOOLEANS_TRUE + BOOLEANS_FALSE # ansible modules can be written in any language. To simplify diff --git a/library/cloud/ec2 b/library/cloud/ec2 index 6a23109524..fc284c14a6 100644 --- a/library/cloud/ec2 +++ b/library/cloud/ec2 @@ -568,9 +568,9 @@ def main(): image = dict(), kernel = dict(), count = dict(default='1'), - monitoring = dict(choices=BOOLEANS, default=False), + monitoring = dict(type='bool', default=False), ramdisk = dict(), - wait = dict(choices=BOOLEANS, default=False), + wait = dict(type='bool', default=False), wait_timeout = dict(default=300), ec2_url = dict(), aws_secret_key = dict(aliases=['ec2_secret_key', 'secret_key'], no_log=True),