From 6a141ba5520355889f311c7302529ac7e62307b0 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 11 Dec 2013 13:48:18 -0800 Subject: [PATCH] command/inspect: output the description if we have it --- command/inspect/command.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/command/inspect/command.go b/command/inspect/command.go index 3e8a7489c..3c420451e 100644 --- a/command/inspect/command.go +++ b/command/inspect/command.go @@ -43,6 +43,12 @@ func (c Command) Run(env packer.Environment, args []string) int { // Convenience... ui := env.Ui() + // Description + if tpl.Description != "" { + ui.Say("Description:\n") + ui.Say(tpl.Description+"\n") + } + // Variables if len(tpl.Variables) == 0 { ui.Say("Variables:\n")