Update volume list options.

This commit is contained in:
Richard M 2023-07-14 20:47:50 +01:00 committed by Gitea
parent 43ecf35449
commit 6025ab443f
1 changed files with 3 additions and 1 deletions

View File

@ -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)