Commit e112885
authored
Fix sshwrap to prevent ssh from consuming following shell input
TransferManager::Shell.sshwrap currently invokes remote commands using ssh '#{host}' ....
In some environments this causes ssh to read from stdin and consume the remaining commands from the generated local shell script. As a result, commands following the wrapped SSH call may be interpreted as input to ssh instead of being executed by the local shell. This can break snapshot cleanup flows, for example RBD snapshot deletion, where subsequent commands are skipped or not processed as expected.
Adding -n prevents ssh from reading stdin by redirecting it from /dev/null. This makes sshwrap safer for non-interactive execution and avoids relying on distro-specific or host-specific SSH client configuration such as StdinNull.1 parent 26018a3 commit e112885
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
| 307 | + | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| |||
0 commit comments