Project

General

Profile

Actions

Bug #33182

closed

Warnings should be improved for hammer host errata apply, when not passing errata_ids

Added by Lucy Fu over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Errata Management
Target version:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1979239

Description of problem:

Version-Release number of selected component (if applicable):
Satellite 6.10.0 Snap 7.0

How reproducible:
always

Steps to Reproduce:
1. # hammer host errata apply --host-id <host-id>
This command uses katello agent and will be removed in favor of remote execution in a future release.
The remote execution equivalent is `hammer job-invocation create --feature katello_errata_install`.
Could not apply errata:
no implicit conversion of nil into String
2. # echo $?
70

Actual results:
no implicit conversion of nil into String

Expected results:
A warning should exist to pass errata_ids, like when not passing --errata to command `hammer host-collection erratum install --id 1 --organization-id 1`

Additional info:
On Satellite 6.9.3 Snap 5.0
  1. hammer host errata apply --host-id 3
    Could not apply errata:
    undefined method `[]' for nil:NilClass
Actions

Also available in: Atom PDF