Fix IOError when using check_cmd

This commit is contained in:
Tor Hveem 2015-03-05 12:30:49 +01:00
parent eccbfe602e
commit b27c176f1c

View File

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