From 98c149859a1d45f4d3e28385b6725448a7c8a8ce Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 4 Aug 2016 10:47:05 -0400 Subject: [PATCH] added y/n to list of module booleans --- lib/ansible/module_utils/basic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index 3f27ae8f4d0..00dc280cf85 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -27,8 +27,8 @@ # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -BOOLEANS_TRUE = ['yes', 'on', '1', 'true', 1, True] -BOOLEANS_FALSE = ['no', 'off', '0', 'false', 0, False] +BOOLEANS_TRUE = ['y', 'yes', 'on', '1', 'true', 1, True] +BOOLEANS_FALSE = ['n', 'no', 'off', '0', 'false', 0, False] BOOLEANS = BOOLEANS_TRUE + BOOLEANS_FALSE # ansible modules can be written in any language. To simplify