Project

General

Profile

Bug #3473

unable to set a global parameter: undefined method `index'

Added by Dominic Cleal over 6 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman commands (obsolete)
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Description of problem:
The "global_parameter set" command fails.

Version-Release number of selected component (if applicable):
rubygem-foreman_api-0.1.6-1.el6sat.noarch
rubygem-hammer_cli-0.0.7-2.el6sat.noarch.rpm
rubygem-hammer_cli_foreman-0.0.7-2.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

(https://bugzilla.redhat.com/show_bug.cgi?id=1022248)

Associated revisions

Revision 0a73bc5e (diff)
Added by Tomas Strachota over 6 years ago

refs #3473 - easier action stubbing of api resources

Revision 1ce1dbf5 (diff)
Added by Tomas Strachota over 6 years ago

fixes #3473 - forgotten old style resource call

Revision 8d974d75
Added by Tomas Strachota over 6 years ago

Merge pull request #46 from tstrachota/params

Fixes #3473 - setting global parameters

History

#1 Updated by Dominic Cleal over 6 years ago

Verified:

[root@foreman ~]# rpm -q rubygem-hammer_cli rubygem-hammer_cli_foreman
rubygem-hammer_cli-0.0.7-1.el6.noarch
rubygem-hammer_cli_foreman-0.0.7-1.el6.noarch
[root@foreman ~]# hammer global_parameter set --name test --value test
Error: undefined method `index' for #<HammerCLI::Apipie::ResourceInstance:0x7fe1ffbd4668>

#2 Updated by Dmitri Dolguikh over 6 years ago

  • Target version set to 1.10.0

#3 Updated by Tomáš Strachota over 6 years ago

  • Status changed from New to Assigned
  • Assignee set to Tomáš Strachota

#4 Updated by Tomáš Strachota over 6 years ago

  • Status changed from Assigned to Ready For Testing

#5 Updated by Anonymous over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Applied in changeset foreman:hammer-cli-foreman|commit:1ce1dbf5c47b98891440cdf1e09ae769869eee38.

Also available in: Atom PDF