Skip to content

Commit

Permalink
Fix IOError when using check_cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
torhve committed Mar 5, 2015
1 parent eccbfe6 commit b27c176
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions salt/states/file.py
Expand Up @@ -1495,6 +1495,10 @@ def managed(name,
if isinstance(cret, dict):
ret.update(cret)
return ret
# Since we generated a new tempfile and we are not returning here
# lets change the original sfn to the new tempfile or else we will
# get file not found
sfn = tmp_filename
else:
ret = {'changes': {},
'comment': '',
Expand Down

0 comments on commit b27c176

Please sign in to comment.