diff options
author | Matt Lesko <leskomw@mail.nih.gov> | 2013-07-05 19:57:01 +0200 |
---|---|---|
committer | Matt Lesko <leskomw@mail.nih.gov> | 2013-07-05 19:57:01 +0200 |
commit | b37ecb055cb6b29ffa85d3a29d59f5cc2f1ec304 (patch) | |
tree | 289decbfcbe64f8419c95e58905e5a76fd30ca66 /bin/ansible-pull | |
parent | Revert "ini_file: add support for lists of options/values" (diff) | |
download | ansible-b37ecb055cb6b29ffa85d3a29d59f5cc2f1ec304.tar.xz ansible-b37ecb055cb6b29ffa85d3a29d59f5cc2f1ec304.zip |
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-x | bin/ansible-pull | 2 |
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 |