2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-16 18:49:04 +00:00

Correct mistakes in shebang adaptive behavior

This commit is contained in:
Jarrod Johnson 2023-07-05 11:14:32 -04:00
parent 9186c8142c
commit 7ddd2c2e6e

View File

@ -21,6 +21,7 @@ try:
import eventlet.green.subprocess as subprocess
except ImportError:
pass
import shutil
import json
import msgpack
import os
@ -79,7 +80,7 @@ class PlayRunner(object):
if not mypath:
ansloc = shutil.which('ansible')
if ansloc:
with open(onsloc, 'r') as onsop:
with open(ansloc, 'r') as onsop:
shebang = onsop.readline()
anspypath = shebang.strip().replace('#!', '')
mypath = anspypath