Update cluster name during config merge

This commit is contained in:
vishalnayak 2016-07-26 11:11:12 -04:00
parent e5c61509d6
commit 46b94d8612

View file

@ -212,6 +212,11 @@ func (c *Config) Merge(c2 *Config) *Config {
result.DefaultLeaseTTL = c2.DefaultLeaseTTL
}
result.ClusterName = c.ClusterName
if c2.ClusterName != "" {
result.ClusterName = c2.ClusterName
}
return result
}