summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Shrewsbury <Shrews@users.noreply.github.com>2021-06-14 09:53:39 -0400
committerGitHub <noreply@github.com>2021-06-14 08:53:39 -0500
commita16dd1150ef1701990ca60c78440aa42d450263a (patch)
tree4a589c2955c0ace2ac207fecd850c38c15d69460
parent03aff644cc1c00e1f7551195c68fbd0d13a39e6e (diff)
downloadansible-a16dd1150ef1701990ca60c78440aa42d450263a.tar.gz
ansible-pull - update help info for --directory option (#74936) (#74993)
* Update -d help info for ansible-pull * fix pep8 (cherry picked from commit 6539c598579f960c16745b3e35c8e841b23fb1a5)
-rw-r--r--changelogs/fragments/ansible-pull-doc-update.yml2
-rw-r--r--lib/ansible/cli/pull.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/changelogs/fragments/ansible-pull-doc-update.yml b/changelogs/fragments/ansible-pull-doc-update.yml
new file mode 100644
index 0000000000..df4709691e
--- /dev/null
+++ b/changelogs/fragments/ansible-pull-doc-update.yml
@@ -0,0 +1,2 @@
+bugfixes:
+ - ansible-pull - update documentation for ``--directory`` option to clarify path must be absolute.
diff --git a/lib/ansible/cli/pull.py b/lib/ansible/cli/pull.py
index e3a3d43565..0ebd431bd5 100644
--- a/lib/ansible/cli/pull.py
+++ b/lib/ansible/cli/pull.py
@@ -94,7 +94,8 @@ class PullCLI(CLI):
'This is a useful way to disperse git requests')
self.parser.add_argument('-f', '--force', dest='force', default=False, action='store_true',
help='run the playbook even if the repository could not be updated')
- self.parser.add_argument('-d', '--directory', dest='dest', default=None, help='directory to checkout repository to')
+ self.parser.add_argument('-d', '--directory', dest='dest', default=None,
+ help='absolute path of repository checkout directory (relative paths are not supported)')
self.parser.add_argument('-U', '--url', dest='url', default=None, help='URL of the playbook repository')
self.parser.add_argument('--full', dest='fullclone', action='store_true', help='Do a full clone, instead of a shallow one.')
self.parser.add_argument('-C', '--checkout', dest='checkout',