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,7 +232,10 @@ func action(c *cli.Context) error {
|
||||||
for secret := range secrets {
|
for secret := range secrets {
|
||||||
secretTable.Append([]string{secret, secrets[secret]})
|
secretTable.Append([]string{secret, secrets[secret]})
|
||||||
}
|
}
|
||||||
defer secretTable.Render()
|
|
||||||
|
if len(secrets) > 0 {
|
||||||
|
defer secretTable.Render()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tableCol := []string{"Name", "Domain", "Type", "Server"}
|
tableCol := []string{"Name", "Domain", "Type", "Server"}
|
||||||
|
|
Loading…
Reference in New Issue