Skip to content

Commit

Permalink
Split roles_path on colon separators and use the first path for the i…
Browse files Browse the repository at this point in the history
…nstallation path
  • Loading branch information
jctanner committed Dec 20, 2013
1 parent 904ba86 commit 82d1455
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/ansible-galaxy
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 82d1455

Please sign in to comment.