Project

General

Profile

Actions

Bug #39372

open

Attempting to assign content-view-environments via hammer when LCE is not synced by content source should propagate error message text to hammer

Added by Chris Roberts about 2 months ago. Updated about 1 month ago.

Status:
Ready For Testing
Priority:
Normal
Assignee:
Category:
Hosts
Difficulty:
Triaged:
No
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Scenario 2: Running the hammer host update --content-view-environments command

Actual Behavior:
When trying to add a lifecycle environment to a host using the command

hammer host update --content-view-environments Library/cv_1{

}, the following error is displayed:
"Could not update the host"

Expected Behavior:
The command

hammer host update --content-view-environments Library/cv_1

should throw a detailed error message, similar to the one produced by the

subscription-manager environments --set

command, such as:
Validation failed: Host: Cannot add content view environment to content facet. The host's content source does not sync lifecycle environment 'Library'. (HTTP error code 422: Unprocessable Entity)

Related issues 1 (1 open0 closed)

Copied to Katello - Bug #39373: Attempting to assign content-view-environments via hammer when LCE is not synced by content source should propagate error message text to hammerReady For TestingChris RobertsActions
Actions

Also available in: Atom PDF