func: add the correct value for costumer feedback on var error (#26601)

This commit is contained in:
Juana De La Cuesta
2025-08-21 15:37:53 +02:00
committed by GitHub
parent da4cf07ff4
commit e7868639d6

View File

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