use image.Parse(repo.String()) in checkVersionedDeployment

* this would cause a difference in tests
pull/221/head
Adrien Delorme 2018-06-05 11:26:15 +02:00
parent 2451e01067
commit bfbc9d9509
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ import (
func (p *Provider) checkVersionedDeployment(newVersion *types.Version, policy types.PolicyType, repo *types.Repository, resource *k8s.GenericResource) (updatePlan *UpdatePlan, shouldUpdateDeployment bool, err error) {
updatePlan = &UpdatePlan{}
eventRepoRef, err := image.Parse(repo.Name)
eventRepoRef, err := image.Parse(repo.String())
if err != nil {
return
}