2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-05-14 18:34:19 +00:00

Fix python detection from ansible with space in shebang

This commit is contained in:
Jarrod Johnson
2026-03-13 11:41:16 -04:00
parent 550dfbf6a0
commit 52db46be93
+1 -1
View File
@@ -97,7 +97,7 @@ class PlayRunner(object):
if ansloc:
with open(ansloc, 'r') as onsop:
shebang = onsop.readline()
anspypath = shebang.strip().replace('#!', '')
anspypath = shebang.strip().replace('#!', '').strip()
mypath = anspypath
if not mypath:
mypath = sys.executable