saltstack/salt — pull request #4206 by basepi (2013-03-22 17:45:18+00:00)
Title: Make file.sed return true even if `after` isn't found in file

Fixes #4063

Now the `file.sed` state will return `True` even if the `after` pattern is not found in the file. This way, it won't show up as an error in the cases of that pattern not appearing in the file, or in the case of using backreferences and such.

The issue is that `sed` is not a tool that's designed to handle state -- it's a stream editor, meant to process a file once. Rather than removing a module that people seem to be using, however, we'll just hack it so it behaves better. =P