From eea2d66c54795b0613290a78bfc1331eaedb6a1b Mon Sep 17 00:00:00 2001 From: James Nesbitt Date: Fri, 16 Aug 2024 12:51:46 +0300 Subject: [PATCH] PRODENG-2719 prepare_hosts msr2 panic regression fix (#502) - 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 --- pkg/product/mke/phase/prepare_host.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/product/mke/phase/prepare_host.go b/pkg/product/mke/phase/prepare_host.go index c41fd2ec..6da2c072 100644 --- a/pkg/product/mke/phase/prepare_host.go +++ b/pkg/product/mke/phase/prepare_host.go @@ -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)