Project

General

Profile

Actions

Bug #39373

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 20 days ago. Updated 13 days ago.

Status:
Ready For Testing
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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 from Hammer CLI - Bug #39372: 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 #1

Updated by Chris Roberts 20 days ago

  • Copied from Bug #39372: Attempting to assign content-view-environments via hammer when LCE is not synced by content source should propagate error message text to hammer added
Actions #2

Updated by The Foreman Bot 20 days ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/1032 added
Actions #3

Updated by The Foreman Bot 19 days ago

  • Pull request deleted (https://github.com/theforeman/hammer-cli-foreman/pull/655, https://github.com/Katello/hammer-cli-katello/pull/1032)
Actions #4

Updated by Samir Jha 13 days ago

  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF