Skip to content

Commit

Permalink
Failure to delete sessions should be non-fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
lox committed Dec 28, 2017
1 parent d34a2cf commit 9bc62f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vault/sessions.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ func (s *KeyringSessions) Sessions() ([]KeyringSession, error) {
if IsSessionKey(k) {
ks, _ := parseKeyringSession(k, s.Config)
if ks.IsExpired() {
log.Printf("Session %s is expired, deleting", k)
log.Printf("Session %s is expired, attempting deleting", k)
if err := s.Keyring.Remove(k); err != nil {
return nil, err
log.Printf("Error deleting session: %v", err)
}
continue
}
Expand Down

0 comments on commit 9bc62f5

Please sign in to comment.