make sure we can correctly save the config file if onboarding influx.

This commit is contained in:
Jason Kulatunga
2022-05-05 23:25:00 -07:00
parent fabc629e40
commit 5bab9ac04a
2 changed files with 6 additions and 2 deletions
@@ -101,8 +101,10 @@ func NewScrutinyRepository(appConfig config.Interface, globalLogger logrus.Field
appConfig.Set("web.influxdb.token", *onboardingResponse.Auth.Token)
// we should write the config file out here. Ignore failures.
_ = appConfig.WriteConfig()
err = appConfig.WriteConfig()
if err != nil {
globalLogger.Infof("ignoring error while writing influxdb info to config: %v", err)
}
}
// Use blocking write client for writes to desired bucket