mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #14616 from garethgreenaway/14308_archive_tar_documentation
Fixing docstrings for archive.tar to be consistent.
This commit is contained in:
commit
2333246dec
@ -70,14 +70,14 @@ def tar(options, tarfile, sources=None, dest=None, cwd=None, template=None):
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' archive.tar template=jinja cjvf /tmp/salt.tar.bz2 {{grains.saltpath}}
|
||||
salt '*' archive.tar cjvf /tmp/salt.tar.bz2 {{grains.saltpath}} template=jinja
|
||||
|
||||
|
||||
To unpack a tarfile, for example:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' archive.tar foo.tar xf dest=/target/directory
|
||||
salt '*' archive.tar xf foo.tar dest=/target/directory
|
||||
|
||||
'''
|
||||
if isinstance(sources, salt._compat.string_types):
|
||||
|
Loading…
Reference in New Issue
Block a user