saltstack/salt — pull request #4914 by basepi (2013-05-07 18:27:39+00:00)
Title: Convert `contents` to string before writing to temp file

Fix for edge case in `file.managed` -- if `contents` was parsed as something non-string (say, an int) then it would error when we tried to write it to a temp file.