saltstack/salt — Issue #824: jobs.lookup_jid returns error
Author: oguzbilgic
Created: 2012-03-04 01:52:05+00:00
State: open

`salt-run jobs.lookup_jid ` returns error if that job is still active.

This is the error message

```
Traceback (most recent call last):
File "/usr/bin/salt-run", line 18, in
main()
File "/usr/bin/salt-run", line 14, in main
client.run()
File "/usr/lib/pymodules/python2.6/salt/cli/__init__.py", line 727, in run
runner.run()
File "/usr/lib/pymodules/python2.6/salt/runner.py", line 50, in run
self.functions[self.opts['fun']](*self.opts['arg'])
File "/usr/lib/pymodules/python2.6/salt/runners/jobs.py", line 72, in lookup_jid
ret, out = _format_ret(full_ret)
TypeError: 'NoneType' object is not iterable
```

p.s. I want to thank contributors for that great open source project.