Skip to content

Commit bd6c90b

Browse files
committed
Fixed cf-remote deploy
Ticket: ENT-13315 Signed-off-by: Victor Moene <[email protected]>
1 parent a7d7c1a commit bd6c90b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cf_remote/ssh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def ssh_sudo(connection, cmd, errors=False, needs_pty=False):
241241
assert connection
242242

243243
if connection.needs_sudo:
244-
cmd = "sudo %s" % cmd
244+
cmd = "sudo bash -c '%s'" % cmd
245245

246246
if needs_pty:
247247
cmd = 'script -qec "%s" /dev/null' % cmd

0 commit comments

Comments
 (0)