Merge pull request #9641 from jumpserver/pr@dev@perf_ansible_gateway

fix: 修复 ansible 网关问题
This commit is contained in:
老广
2023-02-20 16:22:39 +08:00
committed by GitHub
3 changed files with 16 additions and 16 deletions

View File

@@ -54,7 +54,7 @@ class JMSInventory:
if gateway.private_key:
proxy_command_list.append("-i {}".format(gateway.private_key_path))
proxy_command = "'-o ProxyCommand={}'".format(
proxy_command = '-o ProxyCommand=\"{}\"'.format(
" ".join(proxy_command_list)
)
return {"ansible_ssh_common_args": proxy_command}