Skip to content

Commit

Permalink
instantiate a default cns config if loading fails
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Baker <[email protected]>
  • Loading branch information
rbtr authored Mar 1, 2023
1 parent 358de20 commit a5829d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cns/service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ func main() {
cnsconfig, err := configuration.ReadConfig(cmdLineConfigPath)
if err != nil {
logger.Errorf("[Azure CNS] Error reading cns config: %v", err)
cnsconfig = &configuration.CNSConfig{}
}

configuration.SetCNSConfigDefaults(cnsconfig)
Expand Down

0 comments on commit a5829d7

Please sign in to comment.