1
0
mirror of https://github.com/docker/docs.git synced 2026-10-28 07:15:09 +03:00

Remove key file when migration fails.

Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
David Calavera
2015-08-03 15:29:54 -07:00
parent e84a938f2e
commit 07c45e499d

View File

@@ -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)
}
}()