salt icon indicating copy to clipboard operation
salt copied to clipboard

file.sed does not show diff

Open mike-ainsworth opened this issue 12 years ago • 3 comments

The file.sed command does not show a diff of the output, only 'File x is set to be updated'. This is not very useful in reporting as it means we have to review the state file itself to see what change will be made. This is in comparison to file.managed that does show a diff of the changes scheduled to be made in the Comment: block of output.

mike-ainsworth avatar Mar 27 '14 20:03 mike-ainsworth

FWIW, file.sed is officially deprecated. These sorts of operations should be accomplished in file.replace.

cachedout avatar Mar 28 '14 16:03 cachedout

good to know. thanks

On Mar 28, 2014, at 10:09 AM, Mike Place [email protected] wrote:

FWIW, file.sed is officially deprecated. These sorts of operations should be accomplished in file.replace.

— Reply to this email directly or view it on GitHub.

mike-ainsworth avatar Mar 28 '14 16:03 mike-ainsworth

sweeet :-)

On Jul 28, 2015, at 2:22 PM, Nicole Thomas [email protected] wrote:

Closed #11597 https://github.com/saltstack/salt/issues/11597.

— Reply to this email directly or view it on GitHub https://github.com/saltstack/salt/issues/11597#event-367663315.

mike-ainsworth avatar Jul 28 '15 21:07 mike-ainsworth