[Update] 修改sshpass 引号引入密码,特殊字符处理

pull/1503/head
ibuler 2018-07-06 10:34:16 +08:00
parent ef9e03c7ed
commit 814e6a7df8
1 changed files with 1 additions and 1 deletions

View File

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