From 6025ab443f15975b6e332e0d5140973a6c24becf Mon Sep 17 00:00:00 2001 From: Richard M Date: Fri, 14 Jul 2023 20:47:50 +0100 Subject: [PATCH] Update volume list options. --- cli/app/remove.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/app/remove.go b/cli/app/remove.go index ace1a609..186b8e43 100644 --- a/cli/app/remove.go +++ b/cli/app/remove.go @@ -11,6 +11,7 @@ import ( stack "coopcloud.tech/abra/pkg/upstream/stack" "github.com/AlecAivazis/survey/v2" "github.com/docker/docker/api/types" + "github.com/docker/docker/api/types/volume" "github.com/sirupsen/logrus" "github.com/urfave/cli" ) @@ -108,7 +109,8 @@ flag. logrus.Fatal(err) } - volumeListOKBody, err := cl.VolumeList(context.Background(), fs) + volumeListOptions := volume.ListOptions{fs} + volumeListOKBody, err := cl.VolumeList(context.Background(), volumeListOptions) volumeList := volumeListOKBody.Volumes if err != nil { logrus.Fatal(err)