Skip to content

Commit

Permalink
fix: allow unsorted array is comparison for opensearchdomain
Browse files Browse the repository at this point in the history
Signed-off-by: André Kesser <andre.kesser@dkb.de>
(cherry picked from commit c90c2ff)
  • Loading branch information
André Kesser authored and github-actions[bot] committed Feb 16, 2023
1 parent 8f53f05 commit ef4b796
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 ef4b796

Please sign in to comment.