mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Split roles_path on colon separators and use the first path for the installation path
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user