summaryrefslogtreecommitdiff
path: root/bin/ansible-pull
diff options
context:
space:
mode:
authorMatt Lesko <leskomw@mail.nih.gov>2013-07-05 17:57:01 +0000
committerMatt Lesko <leskomw@mail.nih.gov>2013-07-05 17:57:01 +0000
commitb37ecb055cb6b29ffa85d3a29d59f5cc2f1ec304 (patch)
tree289decbfcbe64f8419c95e58905e5a76fd30ca66 /bin/ansible-pull
parent4dfbbc449955cc25760217daa05eeac76a7a4f69 (diff)
downloadansible-b37ecb055cb6b29ffa85d3a29d59f5cc2f1ec304.tar.gz
set checkout destination directory to be full path
we chdir into this path and read the playbook/inventory if a non-absolute path is given on the command line, that will fail
Diffstat (limited to 'bin/ansible-pull')
-rwxr-xr-xbin/ansible-pull2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ansible-pull b/bin/ansible-pull
index 84c385b8a0..f5f026c644 100755
--- a/bin/ansible-pull
+++ b/bin/ansible-pull
@@ -116,6 +116,8 @@ def main(args):
parser.error("Missing required directory argument")
return 1
+ options.dest = os.path.abspath(options.dest)
+
if not options.url:
parser.error("URL for git repo not specified, use -h for help")
return 1