Commit 8e942863 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

command/inspect: fix weird output

parent 09762581
## 0.3.7 (unreleased)
BUG FIXES:
* command/inspect: Fix weird output for default values for optional vars.
## 0.3.6 (September 2, 2013)
......
......@@ -84,7 +84,7 @@ func (c Command) Run(env packer.Environment, args []string) int {
}
padding := strings.Repeat(" ", max-len(k))
output := fmt.Sprintf(" %s%s = %s", k, padding, v)
output := fmt.Sprintf(" %s%s = %s", k, padding, v.Default)
ui.Machine("template-variable", k, v.Default, "0")
ui.Say(output)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment