mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Return the correct status code on auth errors from Salt
This commit is contained in:
parent
c7a96e8986
commit
fc99a10344
@ -126,6 +126,8 @@ def hypermedia_handler(*args, **kwargs):
|
||||
try:
|
||||
cherrypy.response.processors = ct_out_map # handlers may modify this
|
||||
ret = cherrypy.serving.request._hypermedia_inner_handler(*args, **kwargs)
|
||||
except salt.exceptions.EauthAuthenticationError:
|
||||
raise cherrypy.InternalRedirect('/login')
|
||||
except cherrypy.CherryPyException:
|
||||
raise
|
||||
except Exception as exc:
|
||||
|
Loading…
Reference in New Issue
Block a user