Skip to content

Commit

Permalink
zedmanager: report HALTING state correctly when
Browse files Browse the repository at this point in the history
doing a purge; otherwise HALTED state would be reported
directly

Signed-off-by: Christoph Ostarek <christoph@zededa.com>
  • Loading branch information
christoph-zededa committed May 17, 2024
1 parent cfd5c60 commit 888a81d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/pillar/cmd/zedmanager/updatestatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ func doUpdate(ctx *zedmanagerContext,
log.Functionf("PurgeInprogress(%s) volumemgr done",
status.Key())
status.PurgeInprogress = types.BringDown
status.State = types.HALTING
changed = true
// Keep the old volumes in place
_, done := doRemove(ctx, status, false)
Expand Down

0 comments on commit 888a81d

Please sign in to comment.