From e6766078ea8a432badaffcaa830eec7e5932c306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Moser?= Date: Fri, 27 May 2016 15:46:56 +0200 Subject: [PATCH] consul: fix param name for verify SSL (#2194) Introduced in #1793, fixes #2114, needs backport to 2.1 --- lib/ansible/modules/extras/clustering/consul.py | 2 +- lib/ansible/modules/extras/clustering/consul_acl.py | 2 +- lib/ansible/modules/extras/clustering/consul_kv.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/extras/clustering/consul.py b/lib/ansible/modules/extras/clustering/consul.py index e96e7524ae..27c3e84260 100644 --- a/lib/ansible/modules/extras/clustering/consul.py +++ b/lib/ansible/modules/extras/clustering/consul.py @@ -332,7 +332,7 @@ def get_consul_api(module, token=None): return consul.Consul(host=module.params.get('host'), port=module.params.get('port'), scheme=module.params.get('scheme'), - validate_certs=module.params.get('validate_certs'), + verify=module.params.get('validate_certs'), token=module.params.get('token')) diff --git a/lib/ansible/modules/extras/clustering/consul_acl.py b/lib/ansible/modules/extras/clustering/consul_acl.py index b1c7763a55..34c569b250 100644 --- a/lib/ansible/modules/extras/clustering/consul_acl.py +++ b/lib/ansible/modules/extras/clustering/consul_acl.py @@ -313,7 +313,7 @@ def get_consul_api(module, token=None): return consul.Consul(host=module.params.get('host'), port=module.params.get('port'), scheme=module.params.get('scheme'), - validate_certs=module.params.get('validate_certs'), + verify=module.params.get('validate_certs'), token=token) def test_dependencies(module): diff --git a/lib/ansible/modules/extras/clustering/consul_kv.py b/lib/ansible/modules/extras/clustering/consul_kv.py index 4dbf607290..8163cbd986 100644 --- a/lib/ansible/modules/extras/clustering/consul_kv.py +++ b/lib/ansible/modules/extras/clustering/consul_kv.py @@ -244,7 +244,7 @@ def get_consul_api(module, token=None): return consul.Consul(host=module.params.get('host'), port=module.params.get('port'), scheme=module.params.get('scheme'), - validate_certs=module.params.get('validate_certs'), + verify=module.params.get('validate_certs'), token=module.params.get('token')) def test_dependencies(module):