mirror of
https://github.com/clearlinux/docker.git
synced 2026-04-28 10:53:38 +00:00
Remove key file when migration fails.
Signed-off-by: David Calavera <david.calavera@gmail.com>
(cherry picked from commit 07c45e499d)
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