From 855e9ea26d97181c4cf07f3ba4981334c5f0548b Mon Sep 17 00:00:00 2001 From: decentral1se Date: Fri, 10 Sep 2021 10:36:04 +0200 Subject: [PATCH] fix: dont output secrets table if nothing there See https://git.coopcloud.tech/coop-cloud/organising/issues/162. --- cli/app/new.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/app/new.go b/cli/app/new.go index d8b43db8..4c442b0e 100644 --- a/cli/app/new.go +++ b/cli/app/new.go @@ -232,7 +232,10 @@ func action(c *cli.Context) error { for secret := range secrets { secretTable.Append([]string{secret, secrets[secret]}) } - defer secretTable.Render() + + if len(secrets) > 0 { + defer secretTable.Render() + } } tableCol := []string{"Name", "Domain", "Type", "Server"}