Bug 1022248 - Hammer CLI: unable to set a global parameter
Summary: Hammer CLI: unable to set a global parameter
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning
Version: Nightly
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: Ohad Levy
QA Contact: Sachin Ghai
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-22 20:18 UTC by Apurva Bhole
Modified: 2019-09-26 17:42 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-02 14:15:00 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 3473 0 None None None 2016-04-22 17:00:19 UTC

Description Apurva Bhole 2013-10-22 20:18:57 UTC
Description of problem:
The "global_parameter set" command fails.

Version-Release number of selected component (if applicable):
# rpm -qa | grep foreman
katello-configure-foreman-1.4.7-5.el6sat.noarch
foreman-1.3.0-18.el6sat.noarch
foreman-proxy-1.3.0-3.el6sat.noarch
ruby193-rubygem-foreman-katello-engine-0.0.17-6.el6sat.noarch
ruby193-rubygem-katello-foreman-engine-0.0.11-3.el6sat.noarch
katello-foreman-all-1.4.6-39.el6sat.noarch
ruby193-rubygem-foreman_api-0.1.6-1.el6sat.noarch
rubygem-foreman_api-0.1.6-1.el6sat.noarch
rubygem-hammer_cli_foreman-0.0.7-2.el6sat.noarch
foreman-postgresql-1.3.0-18.el6sat.noarch
katello-configure-foreman-proxy-1.4.7-5.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. global_parameter set --name $name --value $value

Actual results:
Error: undefined method `index' for #<HammerCLI::Apipie::ResourceInstance:0x7f5e40700df0>

Expected results:
parameter should be set successfully

Comment 2 Apurva Bhole 2013-10-22 20:28:25 UTC
More Info:
# rpm -qa | grep hammer
rubygem-hammer_cli-0.0.7-2.el6sat.noarch
rubygem-hammer_cli_foreman-0.0.7-2.el6sat.noarch

Comment 4 Dominic Cleal 2014-01-09 13:45:17 UTC
Unsure of the exact hammer release, but now fixed upstream for the next MDP.

Comment 7 Sachin Ghai 2014-05-06 09:12:03 UTC
Verified with Satellite-6.0.3-RHEL-6-20140430.4

[root@qetello02 yum.repos.d]# hammer global-parameter set --name='testparam' --value='testvalue'
Created parameter [testparam] with value [testvalue].
[root@qetello02 yum.repos.d]# hammer global-parameter list
---------------|--------------------------
NAME           | VALUE                    
---------------|--------------------------
opt-ASJyPuHadi | val-rAQEyCLjbI GNnDkJtFun
opt-lcudsGTyuD | val-edJgeRQBEW YlYJmBvFjz
testparam      | testvalue                
---------------|--------------------------
[root@qetello02 yum.repos.d]#

Comment 8 Bryan Kearney 2014-07-02 14:08:56 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.

Comment 9 Bryan Kearney 2014-07-02 14:10:29 UTC
This was delivered in 6.0.3, the Beta version of Satellite 6.0

Comment 10 Bryan Kearney 2014-07-02 14:15:00 UTC
This was delivered in the Satellite 6 Beta (6.0.3)


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