|
|
@ -3,7 +3,6 @@ package endpoints
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
"log"
|
|
|
|
"net/http"
|
|
|
|
"net/http"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
httperror "github.com/portainer/libhttp/error"
|
|
|
|
httperror "github.com/portainer/libhttp/error"
|
|
|
|
"github.com/portainer/libhttp/response"
|
|
|
|
"github.com/portainer/libhttp/response"
|
|
|
@ -22,8 +21,6 @@ func (handler *Handler) endpointSnapshot(w http.ResponseWriter, r *http.Request)
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
time.Sleep(10 * time.Second)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
snapshot, snapshotError := handler.Snapshotter.CreateSnapshot(&endpoint)
|
|
|
|
snapshot, snapshotError := handler.Snapshotter.CreateSnapshot(&endpoint)
|
|
|
|
|
|
|
|
|
|
|
|
latestEndpointReference, err := handler.EndpointService.Endpoint(endpoint.ID)
|
|
|
|
latestEndpointReference, err := handler.EndpointService.Endpoint(endpoint.ID)
|
|
|
|