Skip to content

Commit

Permalink
skip env
Browse files Browse the repository at this point in the history
  • Loading branch information
kelindar committed Aug 19, 2018
1 parent 663253e commit d98871f
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,19 +182,21 @@ func ReadOrCreate(prefix string, path string, newDefault func() Config, stores .

// Apply all the store overrides, in order
for _, store := range stores {
sc, err := getSecretReaderConfig(cfg, store.Name())
if err != nil {
return nil, err
}
if store.Name() != "environment" {
sc, err := getSecretReaderConfig(cfg, store.Name())
if err != nil {
return nil, err
}

// Skip empty configurations
if sc == nil {
continue
}
// Skip empty configurations
if sc == nil {
continue
}

// Configure the store
if err := store.Configure(sc); err != nil {
return nil, err
// Configure the store
if err := store.Configure(sc); err != nil {
return nil, err
}
}

declassify(cfg, prefix, store)
Expand Down

0 comments on commit d98871f

Please sign in to comment.