Skip to content

Commit

Permalink
PRODENG-2719 prepare_hosts msr2 panic regression fix (#502)
Browse files Browse the repository at this point in the history
- regressed during msr3 config refactor.
- simple switch to checking for msr2 when doing msr2 things to
  avoid having msr3 instigate msr2 things.

Signed-off-by: James Nesbitt <[email protected]>
  • Loading branch information
james-nesbitt authored Aug 16, 2024
1 parent b2a6ff6 commit eea2d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/product/mke/phase/prepare_host.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (p *PrepareHost) Run() error {
return fmt.Errorf("failed to authorize docker: %w", err)
}

if p.Config.Spec.ContainsMSR() && p.Config.Spec.MSR2.ReplicaIDs == "sequential" {
if p.Config.Spec.ContainsMSR2() && p.Config.Spec.MSR2.ReplicaIDs == "sequential" {
err = msr2.AssignSequentialReplicaIDs(p.Config)
if err != nil {
return fmt.Errorf("failed to assign sequential MSR replica IDs: %w", err)
Expand Down

0 comments on commit eea2d66

Please sign in to comment.