Actions
Bug #38458
openHost Registration - use --fail-with-body for curl
Status:
Ready For Testing
Priority:
Normal
Assignee:
Category:
Host registration
Target version:
-
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 7 days ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/10555 added
Actions