1
0
mirror of https://github.com/rancher/os.git synced 2025-08-25 09:49:22 +00:00

Merge pull request #782 from joshwget/clean-up-upgrade-container

Clean up upgrade container
This commit is contained in:
Darren Shepherd 2016-02-26 15:11:54 -07:00
commit c7cbb1660a

View File

@ -213,6 +213,10 @@ func startUpgradeContainer(image string, stage, force, reboot bool) error {
return err
}
if err := container.Delete(); err != nil {
return err
}
if reboot && (force || yes(in, "Continue with reboot")) {
log.Info("Rebooting")
power.Reboot()