mirror of https://github.com/portainer/portainer
feat(api): do not set down status if an error is raised during snapshot at startup
parent
76e1aa97e2
commit
3306cbaa27
|
@ -362,7 +362,6 @@ func snapshotAndPersistEndpoint(endpoint *portainer.Endpoint, endpointService po
|
|||
endpoint.Status = portainer.EndpointStatusUp
|
||||
if err != nil {
|
||||
log.Printf("http error: endpoint snapshot error (endpoint=%s, URL=%s) (err=%s)\n", endpoint.Name, endpoint.URL, err)
|
||||
endpoint.Status = portainer.EndpointStatusDown
|
||||
}
|
||||
|
||||
if snapshot != nil {
|
||||
|
|
Loading…
Reference in New Issue