mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Don't require text_out path to exist
This commit is contained in:
parent
ac8008d843
commit
67bc4d6687
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue