Skip to content

Commit

Permalink
check correct state
Browse files Browse the repository at this point in the history
  • Loading branch information
kajes committed May 21, 2024
1 parent f153f9d commit ee1eeb4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/appliance/switch_partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ func switchPartitionRunE(opts *options) error {
return fmt.Errorf("failed to get appliance stats: %w", err)
}

if err := api.ApplianceStats.WaitForApplianceStatus(ctx, *appliance, appliancepkg.StatusNotBusy, t); err != nil {
return err
}

if p != nil {
p.Wait()
}
Expand Down

0 comments on commit ee1eeb4

Please sign in to comment.