From 868eafcfde3280232f010a3b6556fc027e474c3c Mon Sep 17 00:00:00 2001 From: facchettos Date: Mon, 19 Feb 2024 12:58:19 +0100 Subject: [PATCH] now uses the context for list --- cmd/vclusterctl/cmd/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/vclusterctl/cmd/list.go b/cmd/vclusterctl/cmd/list.go index 00fba06c3..9fb482cb7 100644 --- a/cmd/vclusterctl/cmd/list.go +++ b/cmd/vclusterctl/cmd/list.go @@ -96,7 +96,7 @@ func (cmd *ListCmd) Run(cobraCmd *cobra.Command, _ []string) error { cmd.log.Debugf("Error creating pro client: %v", err) } - vClusters, proVClusters, err := find.ListVClusters(cobraCmd.Context(), proClient, "", "", namespace, "", cmd.log.ErrorStreamOnly()) + vClusters, proVClusters, err := find.ListVClusters(cobraCmd.Context(), proClient, cmd.Context, "", namespace, "", cmd.log.ErrorStreamOnly()) if err != nil { return err }