From f998ea664520127848680585ae8a7bdcc8716f74 Mon Sep 17 00:00:00 2001 From: Colton Myers Date: Tue, 28 May 2013 16:47:25 -0600 Subject: [PATCH] Add example for no backup to file.sed state, Fix #5202 --- salt/states/file.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/salt/states/file.py b/salt/states/file.py index 29c0e3b899..9c9a53250a 100644 --- a/salt/states/file.py +++ b/salt/states/file.py @@ -1366,7 +1366,8 @@ def sed(name, before, after, limit='', backup='.bak', options='-r -e', An optional second pattern that can limit the scope of the before pattern. backup : '.bak' - The extension for the backed-up version of the file before the edit. + The extension for the backed-up version of the file before the edit. If + no backups is desired, pass in the empty string: '' options : ``-r -e`` Any options to pass to the ``sed`` command. ``-r`` uses extended regular expression syntax and ``-e`` denotes that what follows is an