Project

General

Profile

Actions

Feature #30696

open

Improve the error output in global registration template

Added by Marek Hulán almost 4 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Host registration
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

When host is created using the POST /api/hosts in the registration template, we could parse the JSON and present the status in a nicer way. Also if the hostgroup is not assigned to the org/loc we register the host in, we receive ugly error

bash: line 2: error:: command not found.

we should double check this by another API request and fail gracefully.


Related issues 1 (1 open0 closed)

Related to Foreman - Bug #30990: GRT and HRT should use curl with --fail to avoid executing html code on 5xx responsesNewActions
Actions

Also available in: Atom PDF