diff --git a/changelog/60227.fixed b/changelog/60227.fixed new file mode 100644 index 00000000000..60d46b46636 --- /dev/null +++ b/changelog/60227.fixed @@ -0,0 +1 @@ +Update docs remove dry_run in docstring of file.blockreplace state. diff --git a/doc/man/salt.7 b/doc/man/salt.7 index e717b5437ff..b5bc7d639af 100644 --- a/doc/man/salt.7 +++ b/doc/man/salt.7 @@ -403425,10 +403425,6 @@ New in version 3001. The file extension to use for a backup of the file if any edit is made. Set this to \fBFalse\fP to skip making a backup. .TP -.B dry_run -If \fBTrue\fP, do not make any edits to the file and simply return the -changes that \fIwould\fP be made. -.TP .B show_changes Controls how changes are presented. If \fBTrue\fP, the \fBChanges\fP section of the state return will contain a unified diff of the changes diff --git a/salt/states/file.py b/salt/states/file.py index 13f5b8eb6eb..855ac45a43a 100644 --- a/salt/states/file.py +++ b/salt/states/file.py @@ -5889,10 +5889,6 @@ def blockreplace( The file extension to use for a backup of the file if any edit is made. Set this to ``False`` to skip making a backup. - dry_run - If ``True``, do not make any edits to the file and simply return the - changes that *would* be made. - show_changes Controls how changes are presented. If ``True``, the ``Changes`` section of the state return will contain a unified diff of the changes