Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Schurter <[email protected]>
  • Loading branch information
Mahmood Ali and schmichael authored Jun 1, 2020
1 parent abda1a1 commit e9d14a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nomad/leader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit e9d14a3

Please sign in to comment.