Bug 1392755 - hammer host-collection list returns "undefined method `id' for nil:NilClass"
Summary: hammer host-collection list returns "undefined method `id' for nil:NilClass"
Keywords:
Status: CLOSED DUPLICATE of bug 1331875
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.2.4
Hardware: x86_64
OS: Linux
low
low
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-08 07:35 UTC by Pavel Moravec
Modified: 2016-11-08 19:58 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-08 19:58:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Pavel Moravec 2016-11-08 07:35:28 UTC
Description of problem:
"hammer host-collection list" command returns "undefined method `id' for nil:NilClass". Quite probably it requires specifying organization since after adding "--organization-id=1", it printed the expected list.

Please print similar warning like "content-host list" has.


Version-Release number of selected component (if applicable):
Sat6.2.3
tfm-rubygem-hammer_cli-0.5.1.11-4.el7sat.noarch


How reproducible:
100%


Steps to Reproduce:
1. hammer -u admin -p redhat host-collection list 


Actual results:
undefined method `id' for nil:NilClass


Expected results:
Error: Could not find organization, please set one of options --organization, --organization-label, --organization-id.


Additional info:

Comment 1 Brad Buckingham 2016-11-08 19:58:34 UTC

*** This bug has been marked as a duplicate of bug 1331875 ***


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