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:
Thomas Jackson 2015-10-17 11:34:29 -07:00
parent d2aff12f8f
commit b1bf79821d

View file

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