From a05e1aee15d305f83d1965adc35d8ca6511226e0 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Wed, 18 Jun 2014 10:32:19 -0700 Subject: [PATCH] agent: Fixing missing copy of RejoinAfterLeave flag. #110 --- command/agent/agent.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/command/agent/agent.go b/command/agent/agent.go index 65654ee04b..472adf53da 100644 --- a/command/agent/agent.go +++ b/command/agent/agent.go @@ -171,6 +171,9 @@ func (a *Agent) consulConfig() *consul.Config { if a.config.Bootstrap { base.Bootstrap = true } + if a.config.RejoinAfterLeave { + base.RejoinAfterLeave = true + } if a.config.Protocol > 0 { base.ProtocolVersion = uint8(a.config.Protocol) }