You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation for archive.tar uses a leading dash before the options that are to be passed through to the tar command. However, this leading dash is instead interpreted as the -c option that specifies a config_dir the salt command:
$ salt '*' archive.tar -cjvf /tmp/tarfile.tar.bz2 /tmp/file_1,/tmp/file_2
WARNING: CONFIG 'jvf' directory does not exist.
myminion:
- tar: Old option 'b' requires an argument.
- Try 'tar --help' or 'tar --usage' for more information.
ERROR: Minions returned with non-zero exit code
Removing the leading dash allows the options to tar to be properly passed through:
$ salt '*' archive.tar cjvf /tmp/tarfile.tar.bz2 /tmp/file_1,/tmp/file_2
myminion:
- tar: Removing leading `/' from member names
- /tmp/file_1
- /tmp/file_2
This documentation bug is present in 2015.8, 2016.3, 2016.11, and 2017.7.
The text was updated successfully, but these errors were encountered:
Description of Issue/Question
The documentation for
archive.tar
uses a leading dash before the options that are to be passed through to thetar
command. However, this leading dash is instead interpreted as the-c
option that specifies a config_dir thesalt
command:Removing the leading dash allows the options to
tar
to be properly passed through:This documentation bug is present in 2015.8, 2016.3, 2016.11, and 2017.7.
The text was updated successfully, but these errors were encountered: