Skip to content

Commit

Permalink
Allow older infras to connect with chaos centre (litmuschaos#4823)
Browse files Browse the repository at this point in the history
Signed-off-by: Baalekshan <baalekshan@gmail.com>
  • Loading branch information
Baalekshan authored and kwx4957 committed Sep 1, 2024
1 parent c5969e5 commit 449c6dc
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 449c6dc

Please sign in to comment.