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

pull/18777/head
Aaron Chen 8 years ago committed by Matt Clay
parent 82475637ef
commit fa4b353da8

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

Loading…
Cancel
Save