mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
Remove key file when migration fails.
Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
@@ -100,6 +100,7 @@ func migrateKey() (err error) {
|
||||
err = os.Remove(oldPath)
|
||||
} else {
|
||||
logrus.Warnf("Key migration failed, key file not removed at %s", oldPath)
|
||||
os.Remove(newPath)
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user