fix: use local python interpreter for database jobs (#17028)

Co-authored-by: wangruidong <940853815@qq.com>
This commit is contained in:
fit2bot
2026-07-13 18:08:50 +08:00
committed by GitHub
parent 7af18d97b6
commit 001f5fe015

View File

@@ -88,7 +88,7 @@ class JMSPermedInventory(JMSInventory):
host['login_user'] = account.username
host['login_password'] = account.secret
host['login_db'] = asset.spec_info.get('db_name', '')
host['ansible_python_interpreter'] = sys.executable
host['ansible_python_interpreter'] = '{{ local_python_interpreter }}'
if gateway:
host['jms_gateway'] = {
'address': gateway.address, 'port': gateway.port,