From e9d14a3e19a7100c4a034cafa79984c7677abea4 Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Sun, 31 May 2020 21:04:39 -0400 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Michael Schurter --- nomad/leader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nomad/leader.go b/nomad/leader.go index 8fc63f245fa..cbf8216c83b 100644 --- a/nomad/leader.go +++ b/nomad/leader.go @@ -395,7 +395,7 @@ func (s *Server) revokeVaultAccessorsOnRestore() error { } if len(revoke) != 0 { - s.logger.Info("revoking vault accessors on restore", "accessors", len(revoke)) + s.logger.Info("revoking vault accessors after becoming leader", "accessors", len(revoke)) if err := s.vault.MarkForRevocation(revoke); err != nil { return fmt.Errorf("failed to revoke tokens: %v", err) @@ -443,7 +443,7 @@ func (s *Server) revokeSITokenAccessorsOnRestore() error { } if len(toRevoke) > 0 { - s.logger.Info("revoking consul accessors on restore", "accessors", len(toRevoke)) + s.logger.Info("revoking consul accessors after becoming leader", "accessors", len(toRevoke)) s.consulACLs.MarkForRevocation(toRevoke) }