From 231cc3c7188b82e57ce369ef7d0fbde6eaead6cd Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 8 Mar 2022 18:04:47 +0100 Subject: [PATCH] fix: use StackName to filter volumes --- cli/app/volume.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/app/volume.go b/cli/app/volume.go index 7bde9692..61dba1f9 100644 --- a/cli/app/volume.go +++ b/cli/app/volume.go @@ -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) }