mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
provider/kubernetes: Fix sorting of the PatchOperations (#13117)
This commit is contained in:
parent
0fb54957fe
commit
587b50fc43
@ -58,7 +58,7 @@ func (po PatchOperations) MarshalJSON() ([]byte, error) {
|
||||
func (po PatchOperations) Equal(ops []PatchOperation) bool {
|
||||
var v []PatchOperation = po
|
||||
|
||||
sort.Slice(v, sortByPathAsc(ops))
|
||||
sort.Slice(v, sortByPathAsc(v))
|
||||
sort.Slice(ops, sortByPathAsc(ops))
|
||||
|
||||
return reflect.DeepEqual(v, ops)
|
||||
|
Loading…
Reference in New Issue
Block a user