From 87a9ada188a8cd1c13e48c21f093be7027d61eca Mon Sep 17 00:00:00 2001 From: Martin Surovcak Date: Fri, 30 Nov 2018 11:43:29 +0100 Subject: [PATCH] fix module argument to be boolean (#47134) --- .../fragments/47134-elasticsearch_plugin-fix_param_type.yml | 2 ++ lib/ansible/modules/database/misc/elasticsearch_plugin.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/47134-elasticsearch_plugin-fix_param_type.yml diff --git a/changelogs/fragments/47134-elasticsearch_plugin-fix_param_type.yml b/changelogs/fragments/47134-elasticsearch_plugin-fix_param_type.yml new file mode 100644 index 0000000000..e2388f9816 --- /dev/null +++ b/changelogs/fragments/47134-elasticsearch_plugin-fix_param_type.yml @@ -0,0 +1,2 @@ +bugfixes: +- "fix elasticsearch_plugin force to be bool (https://github.com/ansible/ansible/pull/47134)" diff --git a/lib/ansible/modules/database/misc/elasticsearch_plugin.py b/lib/ansible/modules/database/misc/elasticsearch_plugin.py index 398166ca67..bcf19fcf15 100644 --- a/lib/ansible/modules/database/misc/elasticsearch_plugin.py +++ b/lib/ansible/modules/database/misc/elasticsearch_plugin.py @@ -61,6 +61,7 @@ options: description: - "Force batch mode when installing plugins. This is only necessary if a plugin requires additional permissions and console detection fails." default: False + type: bool version_added: "2.7" plugin_bin: description: @@ -256,7 +257,7 @@ def main(): src=dict(default=None), url=dict(default=None), timeout=dict(default="1m"), - force=dict(default=False), + force=dict(type='bool', default=False), plugin_bin=dict(type="path"), plugin_dir=dict(default="/usr/share/elasticsearch/plugins/", type="path"), proxy_host=dict(default=None),