Don't require text_out path to exist

This commit is contained in:
Joseph Hall 2017-01-23 09:47:54 -07:00
parent ac8008d843
commit 67bc4d6687

View file

@ -529,7 +529,7 @@ def query(url,
log.trace(('Cannot Trace Log Response Text: {0}. This may be due to '
'incompatibilities between requests and logging.').format(exc))
if text_out is not None and os.path.exists(text_out):
if text_out is not None:
with salt.utils.fopen(text_out, 'w') as tof:
tof.write(result_text)