fix: dont output secrets table if nothing there
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
See coop-cloud/organising#162.
This commit is contained in:
parent
50d663ff6e
commit
855e9ea26d
|
@ -232,8 +232,11 @@ func action(c *cli.Context) error {
|
|||
for secret := range secrets {
|
||||
secretTable.Append([]string{secret, secrets[secret]})
|
||||
}
|
||||
|
||||
if len(secrets) > 0 {
|
||||
defer secretTable.Render()
|
||||
}
|
||||
}
|
||||
|
||||
tableCol := []string{"Name", "Domain", "Type", "Server"}
|
||||
table := abraFormatter.CreateTable(tableCol)
|
||||
|
|
Loading…
Reference in New Issue