mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-12 02:38:20 +00:00
Fix ansible path compatibility.
This commit is contained in:
parent
08dfd55ea0
commit
a94a341582
@ -271,8 +271,11 @@ def handle_request(env, start_response):
|
||||
scriptcat, cfg, nodename,
|
||||
'/var/lib/confluent/public/os/{0}/ansible/{1}')
|
||||
playlist = []
|
||||
dirname = '/var/lib/confluent/public/os/{0}/ansible/{1}.d/'.format(
|
||||
dirname = '/var/lib/confluent/public/os/{0}/ansible/{1}/'.format(
|
||||
profile, scriptcat)
|
||||
if not os.path.isdir(dirname):
|
||||
dirname = '/var/lib/confluent/public/os/{0}/ansible/{1}.d/'.format(
|
||||
profile, scriptcat)
|
||||
for filename in slist:
|
||||
if filename.endswith('.yaml') or filename.endswith('.yml'):
|
||||
playlist.append(os.path.join(dirname, filename))
|
||||
|
Loading…
x
Reference in New Issue
Block a user