fix default interval to be the intended value (#700)

Co-authored-by: Simon Aronsson <simme@arcticbit.se>
pull/702/head
nils måsén 4 years ago committed by GitHub
parent 023919e0fd
commit 33b4957d07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -300,11 +300,11 @@ Should only be used for testing.`)
// SetDefaults provides default values for environment variables
func SetDefaults() {
day := time.Hour * 24
day := (time.Hour * 24).Seconds()
viper.AutomaticEnv()
viper.SetDefault("DOCKER_HOST", "unix:///var/run/docker.sock")
viper.SetDefault("DOCKER_API_VERSION", DockerAPIMinVersion)
viper.SetDefault("WATCHTOWER_POLL_INTERVAL", day.Seconds())
viper.SetDefault("WATCHTOWER_POLL_INTERVAL", day)
viper.SetDefault("WATCHTOWER_TIMEOUT", time.Second*10)
viper.SetDefault("WATCHTOWER_NOTIFICATIONS", []string{})
viper.SetDefault("WATCHTOWER_NOTIFICATIONS_LEVEL", "info")

Loading…
Cancel
Save