1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05: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) err = os.Remove(oldPath)
} else { } else {
logrus.Warnf("Key migration failed, key file not removed at %s", oldPath) logrus.Warnf("Key migration failed, key file not removed at %s", oldPath)
os.Remove(newPath)
} }
}() }()