mirror of
https://github.com/containers/podman.git
synced 2025-06-25 03:52:15 +08:00
Merge pull request #5907 from sujil02/systemprune-v2
Adding system prune for podman v2
This commit is contained in:
@ -38,21 +38,24 @@ func PruneContainers(w http.ResponseWriter, r *http.Request) {
|
|||||||
filterFuncs = append(filterFuncs, generatedFunc)
|
filterFuncs = append(filterFuncs, generatedFunc)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
prunedContainers, pruneErrors, err := runtime.PruneContainers(filterFuncs)
|
|
||||||
if err != nil {
|
|
||||||
utils.InternalServerError(w, err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Libpod response differs
|
// Libpod response differs
|
||||||
if utils.IsLibpodRequest(r) {
|
if utils.IsLibpodRequest(r) {
|
||||||
report := &entities.ContainerPruneReport{
|
report, err := PruneContainersHelper(w, r, filterFuncs)
|
||||||
Err: pruneErrors,
|
if err != nil {
|
||||||
ID: prunedContainers,
|
utils.InternalServerError(w, err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
utils.WriteResponse(w, http.StatusOK, report)
|
utils.WriteResponse(w, http.StatusOK, report)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prunedContainers, pruneErrors, err := runtime.PruneContainers(filterFuncs)
|
||||||
|
if err != nil {
|
||||||
|
utils.InternalServerError(w, err)
|
||||||
|
return
|
||||||
|
}
|
||||||
for ctrID, size := range prunedContainers {
|
for ctrID, size := range prunedContainers {
|
||||||
if pruneErrors[ctrID] == nil {
|
if pruneErrors[ctrID] == nil {
|
||||||
space += size
|
space += size
|
||||||
@ -65,3 +68,19 @@ func PruneContainers(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
utils.WriteResponse(w, http.StatusOK, report)
|
utils.WriteResponse(w, http.StatusOK, report)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func PruneContainersHelper(w http.ResponseWriter, r *http.Request, filterFuncs []libpod.ContainerFilter) (
|
||||||
|
*entities.ContainerPruneReport, error) {
|
||||||
|
runtime := r.Context().Value("runtime").(*libpod.Runtime)
|
||||||
|
prunedContainers, pruneErrors, err := runtime.PruneContainers(filterFuncs)
|
||||||
|
if err != nil {
|
||||||
|
utils.InternalServerError(w, err)
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
report := &entities.ContainerPruneReport{
|
||||||
|
Err: pruneErrors,
|
||||||
|
ID: prunedContainers,
|
||||||
|
}
|
||||||
|
return report, nil
|
||||||
|
}
|
||||||
|
@ -231,14 +231,22 @@ func PodRestart(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func PodPrune(w http.ResponseWriter, r *http.Request) {
|
func PodPrune(w http.ResponseWriter, r *http.Request) {
|
||||||
|
reports, err := PodPruneHelper(w, r)
|
||||||
|
if err != nil {
|
||||||
|
utils.InternalServerError(w, err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
utils.WriteResponse(w, http.StatusOK, reports)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PodPruneHelper(w http.ResponseWriter, r *http.Request) ([]*entities.PodPruneReport, error) {
|
||||||
var (
|
var (
|
||||||
runtime = r.Context().Value("runtime").(*libpod.Runtime)
|
runtime = r.Context().Value("runtime").(*libpod.Runtime)
|
||||||
reports []*entities.PodPruneReport
|
reports []*entities.PodPruneReport
|
||||||
)
|
)
|
||||||
responses, err := runtime.PrunePods(r.Context())
|
responses, err := runtime.PrunePods(r.Context())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
utils.InternalServerError(w, err)
|
return nil, err
|
||||||
return
|
|
||||||
}
|
}
|
||||||
for k, v := range responses {
|
for k, v := range responses {
|
||||||
reports = append(reports, &entities.PodPruneReport{
|
reports = append(reports, &entities.PodPruneReport{
|
||||||
@ -246,7 +254,7 @@ func PodPrune(w http.ResponseWriter, r *http.Request) {
|
|||||||
Id: k,
|
Id: k,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
utils.WriteResponse(w, http.StatusOK, reports)
|
return reports, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func PodPause(w http.ResponseWriter, r *http.Request) {
|
func PodPause(w http.ResponseWriter, r *http.Request) {
|
||||||
|
71
pkg/api/handlers/libpod/system.go
Normal file
71
pkg/api/handlers/libpod/system.go
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
package libpod
|
||||||
|
|
||||||
|
import (
|
||||||
|
"net/http"
|
||||||
|
|
||||||
|
"github.com/containers/libpod/libpod"
|
||||||
|
"github.com/containers/libpod/pkg/api/handlers/compat"
|
||||||
|
"github.com/containers/libpod/pkg/api/handlers/utils"
|
||||||
|
"github.com/containers/libpod/pkg/domain/entities"
|
||||||
|
"github.com/gorilla/schema"
|
||||||
|
"github.com/pkg/errors"
|
||||||
|
)
|
||||||
|
|
||||||
|
// SystemPrune removes unused data
|
||||||
|
func SystemPrune(w http.ResponseWriter, r *http.Request) {
|
||||||
|
var (
|
||||||
|
decoder = r.Context().Value("decoder").(*schema.Decoder)
|
||||||
|
runtime = r.Context().Value("runtime").(*libpod.Runtime)
|
||||||
|
systemPruneReport = new(entities.SystemPruneReport)
|
||||||
|
)
|
||||||
|
query := struct {
|
||||||
|
All bool `schema:"all"`
|
||||||
|
Volumes bool `schema:"volumes"`
|
||||||
|
}{}
|
||||||
|
|
||||||
|
if err := decoder.Decode(&query, r.URL.Query()); err != nil {
|
||||||
|
utils.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest,
|
||||||
|
errors.Wrapf(err, "Failed to parse parameters for %s", r.URL.String()))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
podPruneReport, err := PodPruneHelper(w, r)
|
||||||
|
if err != nil {
|
||||||
|
utils.InternalServerError(w, err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
systemPruneReport.PodPruneReport = podPruneReport
|
||||||
|
|
||||||
|
// We could parallelize this, should we?
|
||||||
|
containerPruneReport, err := compat.PruneContainersHelper(w, r, nil)
|
||||||
|
if err != nil {
|
||||||
|
utils.InternalServerError(w, err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
systemPruneReport.ContainerPruneReport = containerPruneReport
|
||||||
|
|
||||||
|
results, err := runtime.ImageRuntime().PruneImages(r.Context(), query.All, nil)
|
||||||
|
if err != nil {
|
||||||
|
utils.InternalServerError(w, err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
report := entities.ImagePruneReport{
|
||||||
|
Report: entities.Report{
|
||||||
|
Id: results,
|
||||||
|
Err: nil,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
systemPruneReport.ImagePruneReport = &report
|
||||||
|
|
||||||
|
if query.Volumes {
|
||||||
|
volumePruneReport, err := pruneVolumesHelper(w, r)
|
||||||
|
if err != nil {
|
||||||
|
utils.InternalServerError(w, err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
systemPruneReport.VolumePruneReport = volumePruneReport
|
||||||
|
}
|
||||||
|
utils.WriteResponse(w, http.StatusOK, systemPruneReport)
|
||||||
|
}
|
@ -147,14 +147,22 @@ func ListVolumes(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func PruneVolumes(w http.ResponseWriter, r *http.Request) {
|
func PruneVolumes(w http.ResponseWriter, r *http.Request) {
|
||||||
|
reports, err := pruneVolumesHelper(w, r)
|
||||||
|
if err != nil {
|
||||||
|
utils.InternalServerError(w, err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
utils.WriteResponse(w, http.StatusOK, reports)
|
||||||
|
}
|
||||||
|
|
||||||
|
func pruneVolumesHelper(w http.ResponseWriter, r *http.Request) ([]*entities.VolumePruneReport, error) {
|
||||||
var (
|
var (
|
||||||
runtime = r.Context().Value("runtime").(*libpod.Runtime)
|
runtime = r.Context().Value("runtime").(*libpod.Runtime)
|
||||||
reports []*entities.VolumePruneReport
|
reports []*entities.VolumePruneReport
|
||||||
)
|
)
|
||||||
pruned, err := runtime.PruneVolumes(r.Context())
|
pruned, err := runtime.PruneVolumes(r.Context())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
utils.InternalServerError(w, err)
|
return nil, err
|
||||||
return
|
|
||||||
}
|
}
|
||||||
for k, v := range pruned {
|
for k, v := range pruned {
|
||||||
reports = append(reports, &entities.VolumePruneReport{
|
reports = append(reports, &entities.VolumePruneReport{
|
||||||
@ -162,9 +170,8 @@ func PruneVolumes(w http.ResponseWriter, r *http.Request) {
|
|||||||
Id: k,
|
Id: k,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
utils.WriteResponse(w, http.StatusOK, reports)
|
return reports, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func RemoveVolume(w http.ResponseWriter, r *http.Request) {
|
func RemoveVolume(w http.ResponseWriter, r *http.Request) {
|
||||||
var (
|
var (
|
||||||
runtime = r.Context().Value("runtime").(*libpod.Runtime)
|
runtime = r.Context().Value("runtime").(*libpod.Runtime)
|
||||||
|
@ -4,6 +4,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/containers/libpod/pkg/api/handlers/compat"
|
"github.com/containers/libpod/pkg/api/handlers/compat"
|
||||||
|
"github.com/containers/libpod/pkg/api/handlers/libpod"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -11,5 +12,21 @@ func (s *APIServer) registerSystemHandlers(r *mux.Router) error {
|
|||||||
r.Handle(VersionedPath("/system/df"), s.APIHandler(compat.GetDiskUsage)).Methods(http.MethodGet)
|
r.Handle(VersionedPath("/system/df"), s.APIHandler(compat.GetDiskUsage)).Methods(http.MethodGet)
|
||||||
// Added non version path to URI to support docker non versioned paths
|
// Added non version path to URI to support docker non versioned paths
|
||||||
r.Handle("/system/df", s.APIHandler(compat.GetDiskUsage)).Methods(http.MethodGet)
|
r.Handle("/system/df", s.APIHandler(compat.GetDiskUsage)).Methods(http.MethodGet)
|
||||||
|
// Swagger:operation POST /libpod/system/prune libpod pruneSystem
|
||||||
|
// ---
|
||||||
|
// tags:
|
||||||
|
// - system
|
||||||
|
// summary: Prune unused data
|
||||||
|
// produces:
|
||||||
|
// - application/json
|
||||||
|
// responses:
|
||||||
|
// 200:
|
||||||
|
// $ref: '#/responses/SystemPruneReport'
|
||||||
|
// 400:
|
||||||
|
// $ref: "#/responses/BadParamError"
|
||||||
|
// 500:
|
||||||
|
// $ref: "#/responses/InternalError"
|
||||||
|
r.Handle(VersionedPath("/libpod/system/prune"), s.APIHandler(libpod.SystemPrune)).Methods(http.MethodPost)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
"strconv"
|
||||||
|
|
||||||
"github.com/containers/libpod/pkg/bindings"
|
"github.com/containers/libpod/pkg/bindings"
|
||||||
"github.com/containers/libpod/pkg/domain/entities"
|
"github.com/containers/libpod/pkg/domain/entities"
|
||||||
@ -59,3 +60,26 @@ func Events(ctx context.Context, eventChan chan (entities.Event), cancelChan cha
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Prune removes all unused system data.
|
||||||
|
func Prune(ctx context.Context, all, volumes *bool) (*entities.SystemPruneReport, error) {
|
||||||
|
var (
|
||||||
|
report entities.SystemPruneReport
|
||||||
|
)
|
||||||
|
conn, err := bindings.GetClient(ctx)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
params := url.Values{}
|
||||||
|
if all != nil {
|
||||||
|
params.Set("All", strconv.FormatBool(*all))
|
||||||
|
}
|
||||||
|
if volumes != nil {
|
||||||
|
params.Set("Volumes", strconv.FormatBool(*volumes))
|
||||||
|
}
|
||||||
|
response, err := conn.DoRequest(nil, http.MethodPost, "/system/prune", params)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return &report, response.Process(&report)
|
||||||
|
}
|
||||||
|
@ -4,7 +4,12 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/containers/libpod/pkg/api/handlers"
|
"github.com/containers/libpod/pkg/api/handlers"
|
||||||
|
"github.com/containers/libpod/pkg/bindings"
|
||||||
|
"github.com/containers/libpod/pkg/bindings/containers"
|
||||||
|
"github.com/containers/libpod/pkg/bindings/pods"
|
||||||
"github.com/containers/libpod/pkg/bindings/system"
|
"github.com/containers/libpod/pkg/bindings/system"
|
||||||
|
"github.com/containers/libpod/pkg/bindings/volumes"
|
||||||
|
"github.com/containers/libpod/pkg/domain/entities"
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
"github.com/onsi/gomega/gexec"
|
"github.com/onsi/gomega/gexec"
|
||||||
@ -12,13 +17,16 @@ import (
|
|||||||
|
|
||||||
var _ = Describe("Podman system", func() {
|
var _ = Describe("Podman system", func() {
|
||||||
var (
|
var (
|
||||||
bt *bindingTest
|
bt *bindingTest
|
||||||
s *gexec.Session
|
s *gexec.Session
|
||||||
|
newpod string
|
||||||
)
|
)
|
||||||
|
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
bt = newBindingTest()
|
bt = newBindingTest()
|
||||||
bt.RestoreImagesFromCache()
|
bt.RestoreImagesFromCache()
|
||||||
|
newpod = "newpod"
|
||||||
|
bt.Podcreate(&newpod)
|
||||||
s = bt.startAPIService()
|
s = bt.startAPIService()
|
||||||
time.Sleep(1 * time.Second)
|
time.Sleep(1 * time.Second)
|
||||||
err := bt.NewConnection()
|
err := bt.NewConnection()
|
||||||
@ -48,4 +56,98 @@ var _ = Describe("Podman system", func() {
|
|||||||
cancelChan <- true
|
cancelChan <- true
|
||||||
Expect(len(messages)).To(BeNumerically("==", 3))
|
Expect(len(messages)).To(BeNumerically("==", 3))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
It("podman system prune - pod,container stopped", func() {
|
||||||
|
// Start and stop a pod to enter in exited state.
|
||||||
|
_, err := pods.Start(bt.conn, newpod)
|
||||||
|
Expect(err).To(BeNil())
|
||||||
|
_, err = pods.Stop(bt.conn, newpod, nil)
|
||||||
|
Expect(err).To(BeNil())
|
||||||
|
// Start and stop a container to enter in exited state.
|
||||||
|
var name = "top"
|
||||||
|
_, err = bt.RunTopContainer(&name, &bindings.PFalse, nil)
|
||||||
|
Expect(err).To(BeNil())
|
||||||
|
err = containers.Stop(bt.conn, name, nil)
|
||||||
|
Expect(err).To(BeNil())
|
||||||
|
|
||||||
|
systemPruneResponse, err := system.Prune(bt.conn, &bindings.PTrue, &bindings.PFalse)
|
||||||
|
Expect(err).To(BeNil())
|
||||||
|
Expect(len(systemPruneResponse.PodPruneReport)).To(Equal(1))
|
||||||
|
Expect(len(systemPruneResponse.ContainerPruneReport.ID)).To(Equal(1))
|
||||||
|
Expect(len(systemPruneResponse.ImagePruneReport.Report.Id)).
|
||||||
|
To(BeNumerically(">", 0))
|
||||||
|
Expect(systemPruneResponse.ImagePruneReport.Report.Id).
|
||||||
|
To(ContainElement("docker.io/library/alpine:latest"))
|
||||||
|
Expect(len(systemPruneResponse.VolumePruneReport)).To(Equal(0))
|
||||||
|
})
|
||||||
|
|
||||||
|
It("podman system prune running alpine container", func() {
|
||||||
|
// Start and stop a pod to enter in exited state.
|
||||||
|
_, err := pods.Start(bt.conn, newpod)
|
||||||
|
Expect(err).To(BeNil())
|
||||||
|
_, err = pods.Stop(bt.conn, newpod, nil)
|
||||||
|
Expect(err).To(BeNil())
|
||||||
|
|
||||||
|
// Start and stop a container to enter in exited state.
|
||||||
|
var name = "top"
|
||||||
|
_, err = bt.RunTopContainer(&name, &bindings.PFalse, nil)
|
||||||
|
Expect(err).To(BeNil())
|
||||||
|
err = containers.Stop(bt.conn, name, nil)
|
||||||
|
Expect(err).To(BeNil())
|
||||||
|
|
||||||
|
// Start container and leave in running
|
||||||
|
var name2 = "top2"
|
||||||
|
_, err = bt.RunTopContainer(&name2, &bindings.PFalse, nil)
|
||||||
|
Expect(err).To(BeNil())
|
||||||
|
|
||||||
|
// Adding an unused volume
|
||||||
|
_, err = volumes.Create(bt.conn, entities.VolumeCreateOptions{})
|
||||||
|
Expect(err).To(BeNil())
|
||||||
|
|
||||||
|
systemPruneResponse, err := system.Prune(bt.conn, &bindings.PTrue, &bindings.PFalse)
|
||||||
|
Expect(err).To(BeNil())
|
||||||
|
Expect(len(systemPruneResponse.PodPruneReport)).To(Equal(1))
|
||||||
|
Expect(len(systemPruneResponse.ContainerPruneReport.ID)).To(Equal(1))
|
||||||
|
Expect(len(systemPruneResponse.ImagePruneReport.Report.Id)).
|
||||||
|
To(BeNumerically(">", 0))
|
||||||
|
// Alpine image should not be pruned as used by running container
|
||||||
|
Expect(systemPruneResponse.ImagePruneReport.Report.Id).
|
||||||
|
ToNot(ContainElement("docker.io/library/alpine:latest"))
|
||||||
|
// Though unsed volume is available it should not be pruned as flag set to false.
|
||||||
|
Expect(len(systemPruneResponse.VolumePruneReport)).To(Equal(0))
|
||||||
|
})
|
||||||
|
|
||||||
|
It("podman system prune running alpine container volume prune", func() {
|
||||||
|
// Start a pod and leave it running
|
||||||
|
_, err := pods.Start(bt.conn, newpod)
|
||||||
|
Expect(err).To(BeNil())
|
||||||
|
|
||||||
|
// Start and stop a container to enter in exited state.
|
||||||
|
var name = "top"
|
||||||
|
_, err = bt.RunTopContainer(&name, &bindings.PFalse, nil)
|
||||||
|
Expect(err).To(BeNil())
|
||||||
|
err = containers.Stop(bt.conn, name, nil)
|
||||||
|
Expect(err).To(BeNil())
|
||||||
|
|
||||||
|
// Start second container and leave in running
|
||||||
|
var name2 = "top2"
|
||||||
|
_, err = bt.RunTopContainer(&name2, &bindings.PFalse, nil)
|
||||||
|
Expect(err).To(BeNil())
|
||||||
|
|
||||||
|
// Adding an unused volume should work
|
||||||
|
_, err = volumes.Create(bt.conn, entities.VolumeCreateOptions{})
|
||||||
|
Expect(err).To(BeNil())
|
||||||
|
|
||||||
|
systemPruneResponse, err := system.Prune(bt.conn, &bindings.PTrue, &bindings.PTrue)
|
||||||
|
Expect(err).To(BeNil())
|
||||||
|
Expect(len(systemPruneResponse.PodPruneReport)).To(Equal(0))
|
||||||
|
Expect(len(systemPruneResponse.ContainerPruneReport.ID)).To(Equal(1))
|
||||||
|
Expect(len(systemPruneResponse.ImagePruneReport.Report.Id)).
|
||||||
|
To(BeNumerically(">", 0))
|
||||||
|
// Alpine image should not be pruned as used by running container
|
||||||
|
Expect(systemPruneResponse.ImagePruneReport.Report.Id).
|
||||||
|
ToNot(ContainElement("docker.io/library/alpine:latest"))
|
||||||
|
// Volume should be pruned now as flag set true
|
||||||
|
Expect(len(systemPruneResponse.VolumePruneReport)).To(Equal(1))
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
@ -12,3 +12,17 @@ type ServiceOptions struct {
|
|||||||
Timeout time.Duration // duration of inactivity the service should wait before shutting down
|
Timeout time.Duration // duration of inactivity the service should wait before shutting down
|
||||||
Command *cobra.Command // CLI command provided. Used in V1 code
|
Command *cobra.Command // CLI command provided. Used in V1 code
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SystemPruneOptions provides options to prune system.
|
||||||
|
type SystemPruneOptions struct {
|
||||||
|
All bool
|
||||||
|
Volume bool
|
||||||
|
}
|
||||||
|
|
||||||
|
// SystemPruneReport provides report after system prune is executed.
|
||||||
|
type SystemPruneReport struct {
|
||||||
|
PodPruneReport []*PodPruneReport
|
||||||
|
*ContainerPruneReport
|
||||||
|
*ImagePruneReport
|
||||||
|
VolumePruneReport []*VolumePruneReport
|
||||||
|
}
|
||||||
|
@ -46,7 +46,6 @@ func (ir *ImageEngine) Prune(ctx context.Context, opts entities.ImagePruneOption
|
|||||||
Id: results,
|
Id: results,
|
||||||
Err: nil,
|
Err: nil,
|
||||||
},
|
},
|
||||||
Size: 0,
|
|
||||||
}
|
}
|
||||||
return &report, nil
|
return &report, nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user