fix: dont output secrets table if nothing there
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
See coop-cloud/organising#162.
This commit is contained in:
parent
50d663ff6e
commit
855e9ea26d
@ -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"}
|
||||
|
Loading…
Reference in New Issue
Block a user