provider/kubernetes: Fix sorting of the PatchOperations (#13117)

This commit is contained in:
Radek Simko 2017-03-28 13:03:26 +01:00 committed by GitHub
parent 0fb54957fe
commit 587b50fc43
1 changed files with 1 additions and 1 deletions

View File

@ -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)