Skip to content

Commit

Permalink
switch reversed old/new objects to validation
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k authored and Michal Minář committed Mar 20, 2018
1 parent 67e13d0 commit 27cb3bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/image/registry/image/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,5 @@ func (s imageStrategy) PrepareForUpdate(ctx apirequest.Context, obj, old runtime

// ValidateUpdate is the default update validation for an end user.
func (imageStrategy) ValidateUpdate(ctx apirequest.Context, obj, old runtime.Object) field.ErrorList {
return validation.ValidateImageUpdate(old.(*imageapi.Image), obj.(*imageapi.Image))
return validation.ValidateImageUpdate(obj.(*imageapi.Image), old.(*imageapi.Image))
}

0 comments on commit 27cb3bb

Please sign in to comment.