Description of problem: When trying to populate a deployment with hosts, there is a corner case where a task might not be associated with a deployment, causing a no method error. `undefined method `resource_id' for nil:NilClass` Version-Release number of selected component (if applicable): How reproducible: Every time Steps to Reproduce: 1. In development mode, attempt to populate a deployment with hosts 2. Get redirected to a foreman task error NoMethodError in Foreman_tasks/tasks#show Showing /home/jrist/workspace/foreman/vendor/ruby/1.9.1/gems/foreman-tasks-0.6.6/app/views/foreman_tasks/tasks/show.html.erb where line #65 raised: 3. ??? Actual results: Expected results: No error, hosts populate fine. Additional info:
Fix pending: https://github.com/theforeman/staypuft/pull/245
Note, my steps easily recreated this in development mode, but this may show up in non-development mdoe as well
PR pushed to master.
unable to reproduce ruby193-rubygem-staypuft-0.1.22-1.el6ost.noarch
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-1090.html