Project

General

Profile

Actions

Bug #38458

closed

Host Registration - use --fail-with-body for curl

Added by Leos Stejskal 8 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host registration
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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 #1

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
Actions #2

Updated by The Foreman Bot 5 months ago

  • Fixed in Releases 3.16.0 added
Actions #3

Updated by Leos Stejskal 5 months ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF