[Dashboard] Fix Ray Dashboard command error messages (#10050)

This commit is contained in:
Max Fitton
2020-08-18 13:30:51 -05:00
committed by GitHub
parent e4d2ca620a
commit 8d06e30a06
2 changed files with 22 additions and 29 deletions
+1 -2
View File
@@ -431,7 +431,6 @@ class SSHCommandRunner(CommandRunnerInterface):
If `exit_on_fail` is `True`, the process will exit
if the command fails (exits with a code other than 0).
"""
try:
# For now, if the output is needed we just skip the new logic.
# In the future we could update the new logic to support
@@ -520,7 +519,7 @@ class SSHCommandRunner(CommandRunnerInterface):
else:
# We do this because `-o ControlMaster` causes the `-N` flag to
# still create an interactive shell in some ssh versions.
final_cmd.append(quote("while true; do sleep 86400; done"))
final_cmd.append("while true; do sleep 86400; done")
cli_logger.verbose("Running `{}`", cf.bold(cmd))
with cli_logger.indented():