Add common check to generate secrets command.
Some checks failed
continuous-integration/drone/pr Build is failing
Some checks failed
continuous-integration/drone/pr Build is failing
This commit is contained in:
parent
66cf63a665
commit
29bd057460
@ -92,6 +92,10 @@ var appSecretGenerateCommand = cli.Command{
|
|||||||
logrus.Fatal(err)
|
logrus.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := secret.EnsureSecretLengths(secretsConfig, internal.Domain, config.SanitiseAppName(app.Name)); err != nil {
|
||||||
|
logrus.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
secretsToCreate := make(map[string]string)
|
secretsToCreate := make(map[string]string)
|
||||||
if allSecrets {
|
if allSecrets {
|
||||||
secretsToCreate = secretsConfig
|
secretsToCreate = secretsConfig
|
||||||
|
Loading…
x
Reference in New Issue
Block a user