Skip to content

Commit 2e6a915

Browse files
authored
fix unerasonable variable setting (#58371)
Signed-off-by: xin.li <[email protected]>
1 parent e8f5a9d commit 2e6a915

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

istioctl/pkg/waypoint/waypoint.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ func errorWithMessage(errMsg string, gwc *gateway.Gateway, err error) error {
600600
return errors.New(errorMsg)
601601
}
602602

603-
func printWaypointStatus(ctx cli.Context, w *tabwriter.Writer, kubeClient kube.CLIClient, gw []gateway.Gateway) error {
603+
func printWaypointStatus(ctx cli.Context, w *tabwriter.Writer, kubeClient kube.CLIClient, gws []gateway.Gateway) error {
604604
var cond metav1.Condition
605605
startTime := time.Now()
606606
ticker := time.NewTicker(1 * time.Second)
@@ -610,7 +610,7 @@ func printWaypointStatus(ctx cli.Context, w *tabwriter.Writer, kubeClient kube.C
610610
} else {
611611
fmt.Fprintln(w, "NAME\tSTATUS\tTYPE\tREASON\tMESSAGE")
612612
}
613-
for _, gw := range gw {
613+
for _, gw := range gws {
614614
for range ticker.C {
615615
programmed := false
616616
gwc, err := kubeClient.GatewayAPI().GatewayV1().Gateways(ctx.NamespaceOrDefault(ctx.Namespace())).Get(context.TODO(), gw.Name, metav1.GetOptions{})

0 commit comments

Comments
 (0)