Merge pull request #3784 from basepi/autherrorfix

Fixes #3760 Fix to properly print errors from cli.run()
This commit is contained in:
Thomas S Hatch 2013-02-18 16:39:12 -08:00
commit 6865b8f0ec

View File

@ -108,7 +108,7 @@ class SaltCMD(parsers.SaltCMDOptionParser):
ret, out = self._format_ret(full_ret)
self._output_ret(ret, out)
except (SaltInvocationError, EauthAuthenticationError) as exc:
ret = exc
ret = str(exc)
out = ''
self._output_ret(ret, out)