From fa4b353da80dd06cba2218cdd5cb729f7003d31c Mon Sep 17 00:00:00 2001 From: Aaron Chen Date: Wed, 30 Nov 2016 05:12:43 +0800 Subject: [PATCH] elasticsearch-plugin: fix local variable 'name' referenced before assignment (#3431) --- lib/ansible/modules/extras/packaging/elasticsearch_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/packaging/elasticsearch_plugin.py b/lib/ansible/modules/extras/packaging/elasticsearch_plugin.py index 0f420ddb0c0..4d0b7964c3f 100644 --- a/lib/ansible/modules/extras/packaging/elasticsearch_plugin.py +++ b/lib/ansible/modules/extras/packaging/elasticsearch_plugin.py @@ -129,7 +129,7 @@ def install_plugin(module, plugin_bin, plugin_name, version, url, proxy_host, pr cmd_args = [plugin_bin, PACKAGE_STATE_MAP["present"], plugin_name] if version: - name = name + '/' + version + plugin_name = plugin_name + '/' + version if proxy_host and proxy_port: cmd_args.append("-DproxyHost=%s -DproxyPort=%s" % (proxy_host, proxy_port))