fix: use StackName to filter volumes
continuous-integration/drone/push Build is passing Details

This commit is contained in:
decentral1se 2022-03-08 18:04:47 +01:00
parent 3381b8936d
commit 231cc3c718
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ var appVolumeListCommand = cli.Command{
Action: func(c *cli.Context) error {
app := internal.ValidateApp(c)
volumeList, err := client.GetVolumes(context.Background(), app.Server, app.Name)
volumeList, err := client.GetVolumes(context.Background(), app.Server, app.StackName())
if err != nil {
logrus.Fatal(err)
}
@ -78,7 +78,7 @@ Passing "--force" will select all volumes for removal. Be careful.
Action: func(c *cli.Context) error {
app := internal.ValidateApp(c)
volumeList, err := client.GetVolumes(context.Background(), app.Server, app.Name)
volumeList, err := client.GetVolumes(context.Background(), app.Server, app.StackName())
if err != nil {
logrus.Fatal(err)
}