mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-24 16:17:11 +08:00
ensure ca caches include correct revision (#48481)
This commit is contained in:
@@ -232,13 +232,6 @@ func (s *CA) UpsertCertAuthority(ctx context.Context, ca types.CertAuthority) er
|
||||
return trace.Wrap(err)
|
||||
}
|
||||
|
||||
// try to skip writes that would have no effect
|
||||
if existing, err := s.GetCertAuthority(ctx, ca.GetID(), true); err == nil {
|
||||
if services.CertAuthoritiesEquivalent(existing, ca) {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
item, err := caToItem(activeCAKey(ca.GetID()), ca)
|
||||
if err != nil {
|
||||
return trace.Wrap(err)
|
||||
|
||||
Reference in New Issue
Block a user