From 0b163174013a49d1dbc0d044bb3c6cc93f10b6ab Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 2 Sep 2013 15:38:57 -0700 Subject: [PATCH] command/inspect: fix weird output --- CHANGELOG.md | 2 ++ command/inspect/command.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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)