1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Split roles_path on colon separators and use the first path for the installation path

This commit is contained in:
James Tanner 2013-12-20 11:43:38 -05:00
parent 904ba869cc
commit 82d145534c

View file

@ -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):