Project

General

Profile

Actions

Bug #36667

closed

Hammer accepts non-existent LCE in host update

Added by Lucy Fu over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Description of problem:
Hammer host update accepts non-existent LCE id and says 'Host updated.', but it's not.

Version-Release number of selected component (if applicable):
6.14.0 snap 4

How reproducible:
always

Steps to Reproduce:
1. Have a host registered to the Satellite
2. Run `hammer host update --id <host_id> --lifecycle-environment-id 999999`

Actual results:
[root@sat ~]# hammer host update --id 24 --lifecycle-environment-id 999999
Host updated.

Expected results:
Should fail with proper message (like "LCE does not exist", "LCE is not assigned to the content source", etc.)

Actions

Also available in: Atom PDF