1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

feat(api): do not set down status if an error is raised during snapshot at startup

This commit is contained in:
Anthony Lapenna 2018-07-24 21:39:56 +02:00
parent 76e1aa97e2
commit 3306cbaa27

View file

@ -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 {