Backport the [b27c176](b27c176f1c) to 2014.07.

check_cmd does not work without it.
This commit is contained in:
Clint Armstrong 2015-04-28 09:46:02 -04:00
parent b0f4b28487
commit a824d727d1

View file

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