Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
Fix an issue where we try to access a nil pointer
Browse files Browse the repository at this point in the history
Getting the sync progress of a deployment can sometimes fail and
return back a nil result. This happens rarely but when it does
we don't want to panic
  • Loading branch information
Ricardo-Osorio committed Feb 1, 2023
1 parent fb29e14 commit 8d420b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/update/volume_move.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (c *volumeMoveCommand) waitForSyncedReplicaOnNode(ctx context.Context, nsID
if rep.Node.String() == c.toNode {
if rep.Promotable {
return nil
} else {
} else if rep.SyncProgress != nil {
c.display.ReplicaSyncProgress(ctx, c.writer, *rep.SyncProgress)
}
}
Expand Down

0 comments on commit 8d420b8

Please sign in to comment.