Skip to content

Commit e775dab

Browse files
authored
Merge pull request #159 from victormlg/ubn25
ENT-13315: Fixed cf-remote deploy
2 parents 69b4f6c + bd6c90b commit e775dab

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)