Actions
Bug #16067
closedcreate job invocation hammer command fails with NoMethodError (undefined method `[]' for nil:NilClass):
Difficulty:
Triaged:
Description
NoMethodError (undefined method `[]' for nil:NilClass): /home/inecas/Projects/ws/foreman-rex/hammer_cli_foreman_remote_execution/lib/hammer_cli_foreman_remote_execution/job_invocation.rb:112:in `task_progress' /home/inecas/Projects/ws/foreman-rex/hammer-cli-foreman-tasks/lib/hammer_cli_foreman_tasks/async_command.rb:14:in `execute' /home/inecas/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run' /home/inecas/Projects/ws/foreman-rex/hammer-cli/lib/hammer_cli/abstract.rb:22:in `run' /home/inecas/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute' /home/inecas/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
It seems the API changed the key for task details from `dynflow_task` to `task`, probably connected
to rabl version change, seems similar to https://github.com/nesquena/rabl/issues/505, although
I've seen different outputs in foreman 1.11 (with rabl 0.11.6) vs develop with rable 0.12.0)
Updated by Ivan Necas about 8 years ago
- Related to Bug #15778: Can't use process_success Foreman method in API controllers on DynflowTask added
Updated by Ivan Necas about 8 years ago
- Status changed from New to Assigned
- Assignee set to Ivan Necas
After deeper investigation I've noticed the issue was introduced by #15778, where the model_name was overridden. Rabl
uses that method internally to determine the attribute key.
Updated by The Foreman Bot about 8 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman_remote_execution/pull/198 added
Updated by Ivan Necas about 8 years ago
- Target version changed from 1.7.0 to 1.6.1
Updated by Ivan Necas about 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_plugin|9542af897c4bbc0e26d8f4f7005a56de55ba1cde.
Actions