Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2116276 - Hammmer task progress command returns Error: undefined method `empty?' for nil:NilClass
Summary: Hammmer task progress command returns Error: undefined method `empty?' for ni...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Tasks Plugin
Version: 6.12.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: 6.12.0
Assignee: Oleh Fedorenko
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-08 06:58 UTC by addubey
Modified: 2022-11-16 13:35 UTC (History)
7 users (show)

Fixed In Version: hammer-cli-foreman-tasks-0.0.18
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-16 13:35:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 35340 0 Normal New Hammmer task progress command returns Error: undefined method `empty?' for nil:NilClass 2022-08-08 12:58:08 UTC
Red Hat Issue Tracker SAT-12076 0 None None None 2022-09-01 00:30:07 UTC
Red Hat Product Errata RHSA-2022:8506 0 None None None 2022-11-16 13:35:22 UTC

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


Note You need to log in before you can comment on or make changes to this bug.