salt icon indicating copy to clipboard operation
salt copied to clipboard

output/__init.__.py Traceback

Open l2ol33rt opened this issue 14 years ago • 2 comments

$ salt '*' grains.items
Traceback (most recent call last):
  File "/usr/bin/salt", line 10, in 
    salt_main()
  File "/usr/lib/python2.6/site-packages/salt/scripts.py", line 102, in salt_main
    client.run()
  File "/usr/lib/python2.6/site-packages/salt/cli/__init__.py", line 108, in run
    self._output_ret(ret, out)
  File "/usr/lib/python2.6/site-packages/salt/cli/__init__.py", line 122, in _output_ret
    salt.output.display_output(ret, out, self.config)
  File "/usr/lib/python2.6/site-packages/salt/output/__init__.py", line 21, in display_output
    print (get_printout(out, opts)(data).rstrip())
AttributeError: 'NoneType' object has no attribute 'rstrip'

Everything seems to work if I take out the rstip() on line 21. This is from develop branch.

l2ol33rt avatar Oct 29 '12 17:10 l2ol33rt

Thanks for the find, I will get it fixed!

thatch45 avatar Oct 29 '12 17:10 thatch45

No problem Tom, thank you for all the great work!

l2ol33rt avatar Oct 29 '12 18:10 l2ol33rt