From 82d145534c7f2462aeb3b792f8beb618745093bb Mon Sep 17 00:00:00 2001 From: James Tanner Date: Fri, 20 Dec 2013 11:43:38 -0500 Subject: [PATCH] Split roles_path on colon separators and use the first path for the installation path --- bin/ansible-galaxy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/ansible-galaxy b/bin/ansible-galaxy index 5d0cb102364..3ed74be998c 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):