diff --git a/agent/consul/leader_connect_ca.go b/agent/consul/leader_connect_ca.go index dad14c4bba09..c8c63c8874aa 100644 --- a/agent/consul/leader_connect_ca.go +++ b/agent/consul/leader_connect_ca.go @@ -736,7 +736,7 @@ func shouldPersistNewRootAndConfig(newActiveRoot *structs.CARoot, oldConfig, new return false } - // Need not persist when the provider, old and new config is the same + // Do not persist if the new provider and config are the same as the old return !(newConfig.Provider == oldConfig.Provider && reflect.DeepEqual(newConfig.Config, oldConfig.Config)) }