chore: updated utility functions

This commit is contained in:
David Allen 2025-05-01 23:25:27 -06:00
parent 040e9ac808
commit 5e3332e080
Signed by: towk
GPG key ID: 0430CDBE22619155
5 changed files with 157 additions and 4 deletions

View file

@ -13,7 +13,7 @@ func GetBMCCredentials(store secrets.SecretStore, id string) bmc.BMCCredentials
)
if id == "" {
log.Error().Msg("failed to get BMC credentials: id was empty")
log.Error().Msg("failed to get BMC credentials: ID was empty")
return creds
}
@ -36,11 +36,11 @@ func GetBMCCredentials(store secrets.SecretStore, id string) bmc.BMCCredentials
log.Warn().Str("id", id).Err(err).Msg("no default credentials were set, they will be blank unless overridden by CLI flags")
} else {
// Default credentials found, use them.
log.Info().Str("id", id).Msg("default credentials found, using")
log.Info().Str("id", id).Msg("using default credentials found")
creds = defaultSecret
}
} else {
log.Info().Str("id", id).Msg("specific credentials found, using")
log.Info().Str("id", id).Msg("using specific credentials found")
}
return creds