mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Return a 504 response instead of 500 for Salt timeouts
This commit is contained in:
parent
b77b6bae02
commit
63226aeda6
@ -688,6 +688,8 @@ def hypermedia_handler(*args, **kwargs):
|
||||
except (salt.exceptions.SaltDaemonNotRunning,
|
||||
salt.exceptions.SaltReqTimeoutError) as exc:
|
||||
raise cherrypy.HTTPError(503, exc.strerror)
|
||||
except (cherrypy.TimeoutError, salt.exceptions.SaltClientTimeout):
|
||||
raise cherrypy.HTTPError(504)
|
||||
except cherrypy.CherryPyException:
|
||||
raise
|
||||
except Exception as exc:
|
||||
|
Loading…
Reference in New Issue
Block a user