consul_kv: remove default token (#3373)
changes default token from "anonymous" to None. Fixes #792
This commit is contained in:
parent
314f1ea15a
commit
687aaa197b
1 changed files with 3 additions and 3 deletions
|
@ -251,7 +251,7 @@ def test_dependencies(module):
|
||||||
if not python_consul_installed:
|
if not python_consul_installed:
|
||||||
module.fail_json(msg="python-consul required for this module. "\
|
module.fail_json(msg="python-consul required for this module. "\
|
||||||
"see http://python-consul.readthedocs.org/en/latest/#installation")
|
"see http://python-consul.readthedocs.org/en/latest/#installation")
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
argument_spec = dict(
|
argument_spec = dict(
|
||||||
|
@ -265,7 +265,7 @@ def main():
|
||||||
recurse=dict(required=False, type='bool'),
|
recurse=dict(required=False, type='bool'),
|
||||||
retrieve=dict(required=False, default=True),
|
retrieve=dict(required=False, default=True),
|
||||||
state=dict(default='present', choices=['present', 'absent', 'acquire', 'release']),
|
state=dict(default='present', choices=['present', 'absent', 'acquire', 'release']),
|
||||||
token=dict(required=False, default='anonymous', no_log=True),
|
token=dict(required=False, no_log=True),
|
||||||
value=dict(required=False),
|
value=dict(required=False),
|
||||||
session=dict(required=False)
|
session=dict(required=False)
|
||||||
)
|
)
|
||||||
|
@ -273,7 +273,7 @@ def main():
|
||||||
module = AnsibleModule(argument_spec, supports_check_mode=False)
|
module = AnsibleModule(argument_spec, supports_check_mode=False)
|
||||||
|
|
||||||
test_dependencies(module)
|
test_dependencies(module)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
execute(module)
|
execute(module)
|
||||||
except ConnectionError as e:
|
except ConnectionError as e:
|
||||||
|
|
Loading…
Reference in a new issue