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.
Updated by The Foreman Bot 8 months ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/10555 added
Updated by Leos Stejskal 5 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|3992737a54f61b0236ff60116c1f656535d79a57.
Actions