mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use the generic text
attribute, not .body of the handler
fixes #27794 until we can simplify this somewhat crazy HTTP lib :/
This commit is contained in:
parent
d2aff12f8f
commit
b1bf79821d
1 changed files with 2 additions and 2 deletions
|
@ -607,11 +607,11 @@ class Client(object):
|
|||
if 'handle' not in query:
|
||||
raise MinionError('Error: {0}'.format(query['error']))
|
||||
if no_cache:
|
||||
return query['handle'].body
|
||||
return query['text']
|
||||
else:
|
||||
dest_tmp = "{0}.part".format(dest)
|
||||
with salt.utils.fopen(dest_tmp, 'wb') as destfp:
|
||||
destfp.write(query['handle'].body)
|
||||
destfp.write(query['text'])
|
||||
salt.utils.files.rename(dest_tmp, dest)
|
||||
return dest
|
||||
except HTTPError as exc:
|
||||
|
|
Loading…
Add table
Reference in a new issue