mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-07-16 00:10:55 +00:00
fix: use local python interpreter for database jobs (#17028)
Co-authored-by: wangruidong <940853815@qq.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user