Bug 1023071 - hammer cli: 'architecture add_operatingsystem' throws unhandled error
Summary: hammer cli: 'architecture add_operatingsystem' throws unhandled error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning
Version: 6.0.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Tomas Strachota
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-24 14:41 UTC by Corey Welton
Modified: 2019-09-26 13:43 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-24 17:09:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 3499 0 None None None 2016-04-22 15:07:52 UTC

Description Corey Welton 2013-10-24 14:41:43 UTC
Description of problem:
Unhandled error is thrown in hammer cli when using 'add_operatingsystem' param for 'architecture'

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

rubygem-hammer_cli_foreman-0.0.8-2.el6sat.noarch

How reproducible:


Steps to Reproduce:
1. hammer -u admin -p admin architecture add_operatingsystem 
2. view results


Actual results:
[root@cloud-qe-21 ~]# hammer -u admin -p admin architecture add_operatingsystem 
Error: uninitialized constant HammerCLIForeman::AssociatedCommand::ResourceInstance


Expected results:
If we're expecting user to enter something in a different manner, we should tell them what to enter, and we should capture anything differently in a graceful manner.


Additional info:

Comment 2 Apurva Bhole 2013-10-25 17:46:28 UTC
This same issue also exists for the organization subcommands.

many organization sub-commands fail with error:
organization add_computeresource
organization add_user
organization add_domain
etc

Actual Results:
Error: uninitialized constant HammerCLIForeman::AssociatedCommand::ResourceInstance

Comment 3 Dominic Cleal 2013-10-29 20:12:08 UTC
Fixed in rubygem-hammer_cli_foreman-0.0.9.

Comment 6 Corey Welton 2013-10-31 13:38:03 UTC
QA Verified Satellite-6.0.2-RHEL-6-20131030.0

Comment 9 Bryan Kearney 2014-04-24 17:09:37 UTC
This was verified and delivered with MDP2. Closing it out.

Comment 10 Bryan Kearney 2014-04-24 17:11:04 UTC
This was delivered and verified with MDP2. Closing the bug.


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