From e7868639d69a94012fda49ebc77875bebba4bef0 Mon Sep 17 00:00:00 2001 From: Juana De La Cuesta Date: Thu, 21 Aug 2025 15:37:53 +0200 Subject: [PATCH] func: add the correct value for costumer feedback on var error (#26601) --- command/var_get.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/var_get.go b/command/var_get.go index be6c7992b..960b4742d 100644 --- a/command/var_get.go +++ b/command/var_get.go @@ -144,7 +144,7 @@ func (c *VarGetCommand) Run(args []string) int { fmt.Print(v) return 0 } else { - c.Ui.Error(fmt.Sprintf("Variable does not contain %q item", args[1])) + c.Ui.Error(fmt.Sprintf("Variable does not contain %q item", item)) return 1 } }