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