Skip to content

Commit

Permalink
Purge sessions when adding credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
lox committed Sep 3, 2015
1 parent ceff1fe commit 43f313c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ func (p *KeyringProvider) Retrieve() (val credentials.Value, err error) {
}

func (p *KeyringProvider) Store(val credentials.Value) error {
p.Keyring.Remove(sessionServiceName, p.Profile)
return keyring.Marshal(p.Keyring, serviceName, p.Profile, val)
}

Expand Down

0 comments on commit 43f313c

Please sign in to comment.