Description of problem:
when passing wrong-non-existing job-invocation id to the `output` subcommand (together with a valid host parameter), the server returns ISE (err 500) - NoMethodError: undefined method `task' for nil:NilClass
instead of a proper 404 response code
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. have some valid host (Say: foo)
2. hammer job-invocation output --id <invalid-id> --host foo
internal server error returned
404 status codereturned from server
Created redmine issue http://projects.theforeman.org/issues/24930 from this bug
Upstream bug assigned to email@example.com
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/24930 has been resolved.
Verfified on Sat 6.5 snap 2
hammer job-invocation output --id 5555 --host tami-burrel
Job invocation not found by id '5555'
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.