Merge pull request #3221 from havan/fix-sysdoc

Fix issue #3219
This commit is contained in:
Thomas S Hatch 2013-01-10 13:03:50 -08:00
commit 8f3886e67b

View File

@ -117,7 +117,7 @@ class SaltCMD(parsers.SaltCMDOptionParser):
Print the output from a single return to the terminal
'''
# Handle special case commands
if self.config['fun'] == 'sys.doc':
if self.config['fun'] == 'sys.doc' and not isinstance(ret, Exception):
self._print_docs(ret)
else:
# Determine the proper output method and run it