diff --git a/confluent_server/confluent/runansible.py b/confluent_server/confluent/runansible.py index 730ff15a..eeb766e1 100644 --- a/confluent_server/confluent/runansible.py +++ b/confluent_server/confluent/runansible.py @@ -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