Skip to content

Commit 81b7594

Browse files
authored
Only write to config file when needed (#185)
1 parent 4144f6e commit 81b7594

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

internal/pkg/config/config.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,6 @@ func InitConfig() {
8787
cobra.CheckErr(err)
8888
setConfigDefaults()
8989

90-
err = viper.WriteConfigAs(configFilePath)
91-
cobra.CheckErr(err)
92-
93-
// Needs to be done after WriteConfigAs, otherwise it would write
94-
// the environment variables to the config file
9590
viper.AutomaticEnv()
9691
viper.SetEnvPrefix("stackit")
9792
}

0 commit comments

Comments
 (0)