Skip to content

Skips retrying on "command not found" errors#410

Open
claudiubelu wants to merge 1 commit intocloudbase:masterfrom
claudiubelu:skips-reexec-command-not-found
Open

Skips retrying on "command not found" errors#410
claudiubelu wants to merge 1 commit intocloudbase:masterfrom
claudiubelu:skips-reexec-command-not-found

Conversation

@claudiubelu
Copy link
Copy Markdown
Member

exec_ssh_cmd will retry the given cmd in case an error occurs. But if the command does not exist, there's no need to retry.

`exec_ssh_cmd` will retry the given cmd in case an error occurs. But if
the command does not exist, there's no need to retry.
Comment thread coriolis/utils.py
std_out.decode(errors='ignore'),
std_err.decode(errors='ignore')))
(cmd, remote_str, exit_code, stdout_str, stderr_str))
if ("command not found" in stdout_str or
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it might be better to check exit_code == 127 instead of reliying on the stdout/stderr output. What if something outputs that exact message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants