better snapshots management
This commit is contained in:
@@ -480,6 +480,8 @@ func (s *Server) handleAdminDeleteSnapshot(w http.ResponseWriter, r *http.Reques
|
||||
if snap != nil {
|
||||
if snap.StorageType == "s3" && s.s3Backend != nil {
|
||||
s.s3Backend.Delete(context.Background(), snap.StorageKey)
|
||||
} else if snap.StorageType == "local" && s.localBackend != nil {
|
||||
s.localBackend.Delete(context.Background(), snap.StorageKey)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user