Merge pull request #45794 from vutny/doc-file-state-examples

[DOC] Fix code-block rST directive in file state module
This commit is contained in:
Nicole Thomas 2018-01-31 09:41:08 -05:00 committed by GitHub
commit 746386d04c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2962,7 +2962,9 @@ def retention_schedule(name, retain, strptime_format=None, timezone=None):
This is only used when datetime is pulled from ``os.path.getmtime()``.
Defaults to ``None`` which uses the timezone from the locale.
.. code-block: yaml
Usage example:
.. code-block:: yaml
/var/backups/example_directory:
file.retention_schedule:
@ -3216,7 +3218,7 @@ def line(name, content, match=None, mode=None, location=None,
processing can be bypassed in order to pass an equal sign through to the
remote shell command by manually specifying the kwarg:
.. code-block: yaml
.. code-block:: yaml
update_config:
file.line: