mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Use os.pathsep to split roles_path instead of a colon
This commit is contained in:
parent
82d145534c
commit
c37fa5ddce
1 changed files with 2 additions and 2 deletions
|
@ -199,8 +199,8 @@ def get_opt(options, k, defval=""):
|
|||
except:
|
||||
return defval
|
||||
if k == "roles_path":
|
||||
if ":" in data:
|
||||
data = data.split(':')[0]
|
||||
if os.pathsep in data:
|
||||
data = data.split(os.pathsep)[0]
|
||||
return data
|
||||
|
||||
def exit_without_ignore(options, rc=1):
|
||||
|
|
Loading…
Reference in a new issue