Skip to content

Commit

Permalink
Allow older infras to connect with chaos centre (#4823)
Browse files Browse the repository at this point in the history
Signed-off-by: Baalekshan <baalekshan@gmail.com>
  • Loading branch information
Baalekshan authored Aug 23, 2024
1 parent bf3039e commit 4f91bc3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1074,8 +1074,8 @@ func (in *infraService) VerifyInfra(identity model.InfraIdentity) (*dbChaosInfra
} else {
splitCPVersion := strings.Split(currentVersion, ".")
splitSubVersion := strings.Split(identity.Version, ".")
if len(splitSubVersion) != 3 || splitSubVersion[0] != splitCPVersion[0] || splitSubVersion[1] != splitCPVersion[1] {
return nil, fmt.Errorf("ERROR: infra VERSION MISMATCH (need %v.%v.x got %v)", splitCPVersion[0], splitCPVersion[1], identity.Version)
if len(splitSubVersion) != 3 || splitSubVersion[0] != splitCPVersion[0] {
return nil, fmt.Errorf("ERROR: infra VERSION MISMATCH (need %v.x.x got %v)", splitCPVersion[0], identity.Version)
}
}
infra, err := in.infraOperator.GetInfra(identity.InfraID)
Expand Down

0 comments on commit 4f91bc3

Please sign in to comment.