bugfix: execute command with ssh

This commit is contained in:
Tuncay ÇOLAK 2017-08-23 22:43:42 +03:00 committed by GitHub
parent 428791c357
commit e02d8a3c4f

View file

@ -136,7 +136,7 @@ class Util:
try: try:
if ip: if ip:
command = 'ssh root@{0} \'{1}\''.format(ip, command) command = 'ssh root@{0} "{1}"'.format(ip, command)
elif as_user: elif as_user:
command = 'su - {0} -c "{1}"'.format(as_user, command) command = 'su - {0} -c "{1}"'.format(as_user, command)