Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Fix default config file hydration
Browse files Browse the repository at this point in the history
  • Loading branch information
blakewatters committed Apr 18, 2020
1 parent d2aa52a commit c7abc1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ func initConfig() {
} else {
if _, ok := err.(viper.ConfigFileNotFoundError); ok {
// Config file not found; ignore error if desired
opsani.ConfigFile = opsani.DefaultConfigFile()
} else {
panic(fmt.Errorf("error parsing configuration file: %s", err))
}
Expand Down

0 comments on commit c7abc1e

Please sign in to comment.