Actions
Bug #38458
closedHost Registration - use --fail-with-body for curl
Description
When register_host() or register_katello_host() fails with 4xx,
the exit code of the registration command with curl is 0.
This can cause problems in CI or Ansible roles & playbooks.
Using '--fail-with-body', curl will return a non-zero code if the http response is not 200.
Note: wget has this as its default behavior; no changes needed there.
Actions