Skip to content

Commit

Permalink
Merge pull request #191 from ovotech/add-logging-of-rotation-candidates
Browse files Browse the repository at this point in the history
Add logging of rotation candidates
  • Loading branch information
Chris Every authored Mar 2, 2020
2 parents e06c681 + 762a581 commit a5bd64d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkg/rotate/rotatekeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,15 @@ func Rotate(account, provider, project string, c config.Config) (err error) {
c.Credentials, c.DefaultRotationAgeThresholdMins); err != nil {
return
}
logger.Infof("Finalised %d keys that are candidates for rotation", len(rc))

var rcStrings []string
for _, rcKey := range rc {
rcStrings = append(rcStrings, rcKey.key.Account)
}

logger.Infof("Finalised %d keys that are candidates for rotation: %v",
len(rc), rcStrings)

return rotateKeys(rc, c.Credentials)
}

Expand Down

0 comments on commit a5bd64d

Please sign in to comment.