Merge pull request #14616 from garethgreenaway/14308_archive_tar_documentation

Fixing docstrings for archive.tar to be consistent.
This commit is contained in:
Joseph Hall 2014-07-30 00:03:52 -06:00
commit 2333246dec

View File

@ -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):