From e02d8a3c4fccb94b23cde7728555fc5fc0ce2b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuncay=20=C3=87OLAK?= Date: Wed, 23 Aug 2017 22:43:42 +0300 Subject: [PATCH] bugfix: execute command with ssh --- opt/ahenk/base/util/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opt/ahenk/base/util/util.py b/opt/ahenk/base/util/util.py index fa258b6..243ef35 100644 --- a/opt/ahenk/base/util/util.py +++ b/opt/ahenk/base/util/util.py @@ -136,7 +136,7 @@ class Util: try: if ip: - command = 'ssh root@{0} \'{1}\''.format(ip, command) + command = 'ssh root@{0} "{1}"'.format(ip, command) elif as_user: command = 'su - {0} -c "{1}"'.format(as_user, command)