Don't require the decode_out file to already exist

This commit is contained in:
Joseph Hall 2016-03-21 13:15:31 -06:00
parent 1d4246bfd7
commit f27da41b71

View file

@ -552,7 +552,7 @@ def query(url,
else:
text = True
if decode_out and os.path.exists(decode_out):
if decode_out:
with salt.utils.fopen(decode_out, 'w') as dof:
dof.write(result_text)