From 814e6a7df862a0f6103b5ba29273e486d44bb092 Mon Sep 17 00:00:00 2001 From: ibuler Date: Fri, 6 Jul 2018 10:34:16 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E4=BF=AE=E6=94=B9sshpass=20?= =?UTF-8?q?=E5=BC=95=E5=8F=B7=E5=BC=95=E5=85=A5=E5=AF=86=E7=A0=81=EF=BC=8C?= =?UTF-8?q?=E7=89=B9=E6=AE=8A=E5=AD=97=E7=AC=A6=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ops/inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ops/inventory.py b/apps/ops/inventory.py index b7d3ef487..7ed89e75c 100644 --- a/apps/ops/inventory.py +++ b/apps/ops/inventory.py @@ -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))