From 52db46be932971601515ae6a51e7ab19e3a7afce Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 13 Mar 2026 11:41:16 -0400 Subject: [PATCH] Fix python detection from ansible with space in shebang --- confluent_server/confluent/runansible.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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