Skip to content

Commit

Permalink
Only configure env configs when specified (#4216)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinjc authored Mar 30, 2023
1 parent a83bb4c commit 018c3c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dbnode/environment/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,11 @@ func (c Configuration) Configure(cfgParams ConfigurationParameters) (ConfigureRe
return emptyConfig, err
}

if c.Services != nil {
if len(c.Services) > 0 {
return c.configureDynamic(cfgParams)
}

if c.Statics != nil {
if len(c.Statics) > 0 {
return c.configureStatic(cfgParams)
}

Expand Down

0 comments on commit 018c3c3

Please sign in to comment.