command/inspect: fix weird output

This commit is contained in:
Mitchell Hashimoto 2013-09-02 15:38:57 -07:00
parent 0976258136
commit 8e9428633b
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
## 0.3.7 (unreleased)
BUG FIXES:
* command/inspect: Fix weird output for default values for optional vars.
## 0.3.6 (September 2, 2013)

View File

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