Skip to content

Commit

Permalink
Strip the output of the executed command
Browse files Browse the repository at this point in the history
Consumers of the command runner expect the output not to have any
trailing spaces, so let's strip them.

Fixes: 34609df
  • Loading branch information
evgeni committed Feb 25, 2025
1 parent d78d6f2 commit 6452ce3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/foreman_maintain/utils/command_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def run_interactively

def run_non_interactively
@output, @stderr, status = Open3.capture3(@env, full_command, :stdin_data => @stdin)
@output.strip!
@exit_status = status.exitstatus
end

Expand Down

0 comments on commit 6452ce3

Please sign in to comment.