mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix unit.templates.test_jinja.TestCustomExtensions.test_http_query
This commit is contained in:
parent
5aee99bd56
commit
19629a0c3c
1 changed files with 1 additions and 1 deletions
|
@ -465,7 +465,7 @@ def query(url,
|
|||
not isinstance(result_text, six.text_type):
|
||||
result_text = result_text.decode(res_params['charset'])
|
||||
if six.PY3 and isinstance(result_text, bytes):
|
||||
result_text = result.body.decode('utf-8')
|
||||
result_text = result_text.decode('utf-8')
|
||||
ret['body'] = result_text
|
||||
else:
|
||||
# Tornado
|
||||
|
|
Loading…
Add table
Reference in a new issue