command/inspect: fix weird output
This commit is contained in:
parent
0976258136
commit
8e9428633b
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue