From 1b5366487921fb584d5088496884232781151b1c Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Mon, 9 Jun 2014 12:46:10 -0700 Subject: [PATCH] agent: Allow CheckUpdateInterval to be zero --- command/agent/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/config.go b/command/agent/config.go index f7f296a542..0abd04fa2d 100644 --- a/command/agent/config.go +++ b/command/agent/config.go @@ -553,7 +553,7 @@ func MergeConfig(a, b *Config) *Config { if b.DNSConfig.MaxStale != 0 { result.DNSConfig.MaxStale = b.DNSConfig.MaxStale } - if b.CheckUpdateInterval != 0 { + if b.CheckUpdateIntervalRaw != "" { result.CheckUpdateInterval = b.CheckUpdateInterval }