Skip to content

Commit

Permalink
Add logging of rotation candidates
Browse files Browse the repository at this point in the history
  • Loading branch information
eversC committed Feb 24, 2020
1 parent 054d62b commit 762a581
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 762a581

Please sign in to comment.