From b37ecb055cb6b29ffa85d3a29d59f5cc2f1ec304 Mon Sep 17 00:00:00 2001 From: Matt Lesko Date: Fri, 5 Jul 2013 17:57:01 +0000 Subject: [PATCH] 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 --- bin/ansible-pull | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/ansible-pull b/bin/ansible-pull index 84c385b8a0f..f5f026c6449 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