Project

General

Profile

Actions

Bug #38458

open

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

Added by Leos Stejskal 7 days ago. Updated 7 days ago.

Status:
Ready For Testing
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 7 days ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/10555 added
Actions

Also available in: Atom PDF