Project

General

Profile

Bug #21281

hammer host-collection add-host/remove-host always return success

Added by Andrew Kofink almost 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Hammer
Target version:
Difficulty:
medium
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1335559
Description of problem:
The `hammer host-collection add-host/remove-host` commands always return success messages, regardless of whether the hosts added/removed are found.

Version-Release number of selected component (if applicable):
6.1,6.2,devel

How reproducible:
Always

Steps to Reproduce:
1. Run the following hammer commands with a valid host collection but invalid host ids
`hammer host-collection add-host --id 1 --host-ids 2354,34`
`hammer host-collection remove-host --id 1 --host-ids 2354,34`

Actual results:
The host(s) has been added
The host(s) has been removed

Expected results:
Could not find hosts with IDs 2354,34. No hosts added.
Could not find hosts with IDs 2354,34. No hosts removed.

Additional info:


Related issues

Copied from Katello - Bug #15291: hammer host-collection add-host/remove-host always return successClosed2016-06-03

Associated revisions

Revision 5a6c68ac (diff)
Added by Andrew Kofink almost 4 years ago

Fixes #21281 - Puts errors in HC host-add/remove (#519)

History

#1 Updated by Andrew Kofink almost 4 years ago

  • Copied from Bug #15291: hammer host-collection add-host/remove-host always return success added

#2 Updated by The Foreman Bot almost 4 years ago

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

#3 Updated by Justin Sherrill almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 284

#4 Updated by Anonymous almost 4 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF