mirror of https://github.com/docker/docs.git
removekey is going to be best effort
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
This commit is contained in:
parent
72cd24ac13
commit
2d4612c703
|
@ -105,11 +105,7 @@ func (cs *CryptoService) RemoveKey(keyID string) (err error) {
|
||||||
keyPaths := []string{keyID, filepath.Join(cs.gun, keyID)}
|
keyPaths := []string{keyID, filepath.Join(cs.gun, keyID)}
|
||||||
for _, ks := range cs.keyStores {
|
for _, ks := range cs.keyStores {
|
||||||
for _, keyPath := range keyPaths {
|
for _, keyPath := range keyPaths {
|
||||||
_, _, err = ks.GetKey(keyPath)
|
ks.RemoveKey(keyPath)
|
||||||
if err != nil {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
err = ks.RemoveKey(keyPath)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return // returns whatever the final values were
|
return // returns whatever the final values were
|
||||||
|
|
Loading…
Reference in New Issue