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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user