1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

elasticsearch-plugin: fix local variable 'name' referenced before assignment (#3431)

This commit is contained in:
Aaron Chen 2016-11-30 05:12:43 +08:00 committed by Matt Clay
parent 82475637ef
commit fa4b353da8

View file

@ -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))