Skip to content

Commit

Permalink
Merge pull request #1664 from crossplane-contrib/backport-1663-to-rel…
Browse files Browse the repository at this point in the history
…ease-0.37

[Backport release-0.37] fix: allow unsorted array is comparison for opensearchdomain
  • Loading branch information
Christopher Haar committed Feb 16, 2023
2 parents 8f53f05 + ef4b796 commit 600ca7d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pkg/controller/opensearchservice/domain/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,10 +586,11 @@ func isUpToDate(obj *svcapitypes.Domain, out *svcsdk.DescribeDomainOutput) (bool
found = true
break
}
if !found {
return false, nil
}
}
if !found {
return false, nil
}

}
if len(out.DomainStatus.VPCOptions.SubnetIds) != len(obj.Spec.ForProvider.VPCOptions.SubnetIDs) {
return false, nil
Expand All @@ -601,9 +602,9 @@ func isUpToDate(obj *svcapitypes.Domain, out *svcsdk.DescribeDomainOutput) (bool
found = true
break
}
if !found {
return false, nil
}
}
if !found {
return false, nil
}
}
}
Expand Down

0 comments on commit 600ca7d

Please sign in to comment.