Actions
Bug #3583
closed"os set_parameter" fails with undefined method `[]' for nil:NilClass
Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman commands (obsolete)
Target version:
Description
When setting a parameter on an OS you get the following error:
[root@foreman ~]# hammer os set_parameter --os-id 1 --name foo --value bar
Could not set operating system parameter:
Error: undefined method `[]' for nil:NilClass
rubygem-hammer_cli-0.0.8-1.el6.noarch
rubygem-hammer_cli_foreman-0.0.9-2.el6.noarch
rubygem-foreman_api-0.1.8-1.el6.noarch
Hammer seems to be making a strange request to Foreman compared to the exact same command for domains:
Started GET "/api/domains/1/parameters" for 127.0.0.1 at 2013-11-05 15:55:04 +0000 Processing by Api::V2::ParametersController#index as JSON Parameters: {"domain_id"=>"1", "parameter"=>{}} Authorized user admin(Dominic Cleal) Rendered api/v2/parameters/index.json.rabl (5.0ms) Completed 200 OK in 39ms (Views: 5.3ms | ActiveRecord: 10.6ms) Started GET "/api/operatingsystems?operatingsystem_id=1" for 127.0.0.1 at 2013-11-05 15:55:39 +0000 Processing by Api::V1::OperatingsystemsController#index as JSON Parameters: {"operatingsystem_id"=>"1", "operatingsystem"=>{}} Authorized user admin(Dominic Cleal) Rendered api/v1/operatingsystems/index.json.rabl (258.0ms) Completed 200 OK in 276ms (Views: 251.2ms | ActiveRecord: 14.2ms)
Updated by Martin Bacovsky almost 11 years ago
- Status changed from New to Ready For Testing
- Assignee set to Martin Bacovsky
- Target version set to 1.9.3
- Translation missing: en.field_release set to 2
Updated by Martin Bacovsky almost 11 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman:hammer-cli-foreman|commit:92eee5b62360668691beb6f37384f1645f2e6b1d.
Actions