diff --git a/clustering/consul.py b/clustering/consul.py index e96e7524aeb..27c3e84260c 100644 --- a/clustering/consul.py +++ b/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/clustering/consul_acl.py b/clustering/consul_acl.py index b1c7763a550..34c569b250c 100644 --- a/clustering/consul_acl.py +++ b/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/clustering/consul_kv.py b/clustering/consul_kv.py index 4dbf6072905..8163cbd986b 100644 --- a/clustering/consul_kv.py +++ b/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):