Skip to content

Commit

Permalink
Wait for k0s service to stop before running k0s reset (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
kke committed Sep 28, 2021
1 parent f604e01 commit 1ff00f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions phase/reset.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ func (p *Reset) Run() error {
if err := h.Configurer.StopService(h, h.K0sServiceName()); err != nil {
return err
}
log.Infof("%s: waiting for k0s to stop", h)
if err := h.WaitK0sServiceStopped(); err != nil {
return err
}
}

log.Infof("%s: running k0s reset", h)
Expand Down

0 comments on commit 1ff00f7

Please sign in to comment.