Bug 2116276

Summary: Hammmer task progress command returns Error: undefined method `empty?' for nil:NilClass
Product: Red Hat Satellite Reporter: addubey
Component: Tasks PluginAssignee: Oleh Fedorenko <ofedoren>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.12.0CC: addubey, apatel, aruzicka, kgaikwad, ofedoren, pcreech, rabajaj
Target Milestone: 6.12.0Keywords: EasyFix, Triaged, UserExperience
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: hammer-cli-foreman-tasks-0.0.18 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-16 13:35:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description addubey 2022-08-08 06:58:31 UTC
Description of problem: Hammmer task progress command returns Error: undefined method `empty?' for nil:NilClass



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

Satellite 6.12.0 snap -5 


How reproducible: Always 


Steps to Reproduce:
1. # hammer task progress


Actual results: Error: undefined method `empty?' for nil:NilClass


Expected results: Task progress list/help section to use


Additional info:

Comment 1 Oleh Fedorenko 2022-08-08 12:58:07 UTC
Created redmine issue https://projects.theforeman.org/issues/35340 from this bug

Comment 2 Bryan Kearney 2022-08-08 16:05:17 UTC
Upstream bug assigned to ofedoren

Comment 3 Bryan Kearney 2022-08-08 16:05:19 UTC
Upstream bug assigned to ofedoren

Comment 4 Peter Ondrejka 2022-09-05 13:08:20 UTC
Checked on satellite 6.12 snap 9, options are now validated as expected in this scenario:

hammer task progress
Error: Option --id is required.

Comment 8 errata-xmlrpc 2022-11-16 13:35:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.12 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:8506