summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Tanner <tanner.jc@gmail.com>2013-12-20 11:43:38 -0500
committerJames Tanner <tanner.jc@gmail.com>2013-12-20 13:19:01 -0500
commit9da252894541fd7589b966d949244a2172c40edb (patch)
treed3a6e2231cda4d28b82cda524b7e17577c72f27a
parent309f0e03b47491651b2679ef397563de4c7f7c95 (diff)
downloadansible-9da252894541fd7589b966d949244a2172c40edb.tar.gz
Split roles_path on colon separators and use the first path for the installation path
-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):