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

pull/2077/head
Anthony Lapenna 6 years ago
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…
Cancel
Save