mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix error message when tornado or pycurl is not installed
This commit is contained in:
parent
42bb1a64ca
commit
1c0574d05e
1 changed files with 2 additions and 2 deletions
|
@ -456,8 +456,8 @@ def query(url,
|
|||
# We want to use curl_http if we have a proxy defined
|
||||
if proxy_host and proxy_port:
|
||||
if HAS_CURL_HTTPCLIENT is False:
|
||||
ret['error'] = ('proxy_host and proxy_port has been set. This requires pycurl, but the '
|
||||
'pycurl library does not seem to be installed')
|
||||
ret['error'] = ('proxy_host and proxy_port has been set. This requires pycurl and tornado, '
|
||||
'but the libraries does not seem to be installed')
|
||||
log.error(ret['error'])
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue