Indicate backend encrypted only if encryption is requested (#8508)

This commit is contained in:
Harshavardhana
2019-11-11 18:42:10 -08:00
committed by GitHub
parent aa04f97f95
commit 1027afa853
3 changed files with 13 additions and 14 deletions

View File

@@ -193,7 +193,7 @@ func LookupConfig(scfg config.Config) (Config, error) {
if starget != config.Default {
authTokenEnv = EnvLoggerHTTPAuditAuthToken + config.Default + starget
}
cfg.HTTP[starget] = HTTP{
cfg.Audit[starget] = HTTP{
Enabled: true,
Endpoint: endpoint,
AuthToken: env.Get(authTokenEnv, kv.Get(AuthToken)),