From aa663e13090d19e084e62bb42908a5018a30f4e9 Mon Sep 17 00:00:00 2001 From: Drew Bailey <2614075+drewbailey@users.noreply.github.com> Date: Thu, 7 May 2020 12:14:15 -0400 Subject: [PATCH] update license output --- command/license.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/command/license.go b/command/license.go index b13ccea62..1bc4f9f7c 100644 --- a/command/license.go +++ b/command/license.go @@ -84,11 +84,13 @@ func outputLicenseInfo(ui cli.Ui, lic *api.License, expired bool, validity strin if len(lic.Modules) > 0 { ui.Output("Modules:") for _, mod := range lic.Modules { - ui.Output(fmt.Sprintf("\t%v", mod)) + ui.Output(fmt.Sprintf("\t%s", mod)) } } - ui.Output("Licensed Features:") - for _, f := range lic.Features { - ui.Output(fmt.Sprintf("\t%s", f)) + if len(lic.Features) > 0 { + ui.Output("Licensed Features:") + for _, f := range lic.Features { + ui.Output(fmt.Sprintf("\t%s", f)) + } } }