From e44362b6f89f61dfb6451fc65e45837b9498cf20 Mon Sep 17 00:00:00 2001 From: Jeremy Olexa Date: Wed, 9 Nov 2016 16:00:09 -0600 Subject: [PATCH] consul_kv, consul_acl: fix missing types bool (#3327) * Specify bool in consul_kv: validate_certs param * Specify bool in consul_acl: validate_certs param * Specify bool in consul_kv: retrieve param --- lib/ansible/modules/extras/clustering/consul_acl.py | 2 +- lib/ansible/modules/extras/clustering/consul_kv.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/extras/clustering/consul_acl.py b/lib/ansible/modules/extras/clustering/consul_acl.py index 8e82beeae5..858f6aea50 100644 --- a/lib/ansible/modules/extras/clustering/consul_acl.py +++ b/lib/ansible/modules/extras/clustering/consul_acl.py @@ -336,7 +336,7 @@ def main(): mgmt_token=dict(required=True, no_log=True), host=dict(default='localhost'), scheme=dict(required=False, default='http'), - validate_certs=dict(required=False, default=True), + validate_certs=dict(required=False, type='bool', default=True), name=dict(required=False), port=dict(default=8500, type='int'), rules=dict(default=None, required=False, type='list'), diff --git a/lib/ansible/modules/extras/clustering/consul_kv.py b/lib/ansible/modules/extras/clustering/consul_kv.py index 7304606d95..e409f2a3a5 100644 --- a/lib/ansible/modules/extras/clustering/consul_kv.py +++ b/lib/ansible/modules/extras/clustering/consul_kv.py @@ -260,10 +260,10 @@ def main(): key=dict(required=True), host=dict(default='localhost'), scheme=dict(required=False, default='http'), - validate_certs=dict(required=False, default=True), + validate_certs=dict(required=False, type='bool', default=True), port=dict(default=8500, type='int'), recurse=dict(required=False, type='bool'), - retrieve=dict(required=False, default=True), + retrieve=dict(required=False, type='bool', default=True), state=dict(default='present', choices=['present', 'absent', 'acquire', 'release']), token=dict(required=False, no_log=True), value=dict(required=False),