Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Always outputs stdout for running, non-interactive, shells #427

Merged
merged 3 commits into from
Feb 17, 2025

Conversation

bomoko
Copy link
Contributor

@bomoko bomoko commented Feb 14, 2025

With non-interactive ssh calls, the RunSSHCommand function was exiting with only an error returned, but not outputting anything that came back via stdout, as it would on successful calls.

This meant that we were losing some important information in the output. This PR simply ensures that if there is data buffered from stdout, we're displaying in.

General Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated
  • PR title is ready for inclusion in changelog

Closing issues

closes #426

@bomoko bomoko requested a review from shreddedbacon February 14, 2025 01:22
Copy link
Member

@shreddedbacon shreddedbacon left a comment

Choose a reason for hiding this comment

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

Makes sense

@shreddedbacon shreddedbacon merged commit 2221499 into main Feb 17, 2025
7 checks passed
@shreddedbacon shreddedbacon deleted the fix/better_output_for_interactive_shell branch February 17, 2025 02:30
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.

Insufficient error messages when running lagoon ssh with -C
2 participants