Merge branch 'dev' of github.com:jumpserver/jumpserver into github_dev

pull/1503/head
BaiJiangJie 2018-07-06 10:57:42 +08:00
commit 86e4bc5e9a
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class JMSInventory(BaseInventory):
if gateway.password: if gateway.password:
proxy_command_list.insert( proxy_command_list.insert(
0, "sshpass -p {}".format(gateway.password) 0, "sshpass -p '{}'".format(gateway.password)
) )
if gateway.private_key: if gateway.private_key:
proxy_command_list.append("-i {}".format(gateway.private_key_file)) proxy_command_list.append("-i {}".format(gateway.private_key_file))