diff --git a/CHANGELOG.md b/CHANGELOG.md index b02c75d47..c000c2d0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/command/inspect/command.go b/command/inspect/command.go index f82561083..3e8a7489c 100644 --- a/command/inspect/command.go +++ b/command/inspect/command.go @@ -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)