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:
parent
9186c8142c
commit
7ddd2c2e6e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user