Avoid triggering crash detection on container destroy

This commit is contained in:
Dane Everitt
2020-01-19 14:00:59 -08:00
parent 59299d3cda
commit ab54d2c416
2 changed files with 4 additions and 0 deletions

View File

@@ -501,6 +501,7 @@ func (rt *Router) routeServerDelete(w http.ResponseWriter, r *http.Request, ps h
// to start it while this process is running.
s.Suspended = true
zap.S().Infow("processing server deletion request", zap.String("server", s.Uuid))
// Destroy the environment; in Docker this will handle a running container and
// forcibly terminate it before removing the container, so we do not need to handle
// that here.