Skip to content

Commit

Permalink
Fixes #36969 - return the actual exit status of registration command
Browse files Browse the repository at this point in the history
  • Loading branch information
nofaralfasi committed Dec 11, 2023
1 parent d48325f commit c894786
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Foreman::Controller::RegistrationCommands

def command
args_query = "?#{registration_args.to_query}"
"curl -sS #{insecure} '#{registration_url(@smart_proxy)}#{args_query if args_query != '?'}' #{command_headers} | bash"
"output=$(curl -sS #{insecure} '#{registration_url(@smart_proxy)}#{args_query if args_query != '?'}' #{command_headers}) && echo \"$output\" | bash"
end

def registration_args
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ register_katello_host | bash
register_host | bash
<% end -%>

cleanup_and_exit
cleanup_and_exit $?

0 comments on commit c894786

Please sign in to comment.