summaryrefslogtreecommitdiffstats
path: root/bin/ansible-galaxy
diff options
context:
space:
mode:
authorJames Tanner <tanner.jc@gmail.com>2013-12-20 17:43:38 +0100
committerJames Tanner <tanner.jc@gmail.com>2013-12-20 17:43:38 +0100
commit82d145534c7f2462aeb3b792f8beb618745093bb (patch)
treebf5c21710dd178f811b3bb9ebea5b3c94d1ed923 /bin/ansible-galaxy
parentCreate a default README.md with ansible-galaxy init (diff)
downloadansible-82d145534c7f2462aeb3b792f8beb618745093bb.tar.xz
ansible-82d145534c7f2462aeb3b792f8beb618745093bb.zip
Split roles_path on colon separators and use the first path for the installation path
Diffstat (limited to 'bin/ansible-galaxy')
-rwxr-xr-xbin/ansible-galaxy3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/ansible-galaxy b/bin/ansible-galaxy
index 5d0cb10236..3ed74be998 100755
--- a/bin/ansible-galaxy
+++ b/bin/ansible-galaxy
@@ -198,6 +198,9 @@ def get_opt(options, k, defval=""):
data = getattr(options, k)
except:
return defval
+ if k == "roles_path":
+ if ":" in data:
+ data = data.split(':')[0]
return data
def exit_without_ignore(options, rc=1):