Skip to content

Commit

Permalink
Merge branch 'main' into benr/provider-builder-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benr authored Sep 27, 2023
2 parents 5b27976 + d57ad05 commit a3fd3c0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cli/providers/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,13 @@ func setConnector(provider *plugin.Provider, connector *plugin.Connector, run fu
// TODO: add flag to set timeout and then use RuntimeWithShutdownTimeout
runtime := providers.Coordinator.NewRuntime()

// TODO: read from config
autoUpdate := true
if viper.IsSet("auto_update") {
autoUpdate = viper.GetBool("auto_update")
}

runtime.AutoUpdate = providers.UpdateProvidersConfig{
Enabled: true,
Enabled: autoUpdate,
RefreshInterval: 60 * 60,
}

Expand Down

0 comments on commit a3fd3c0

Please sign in to comment.