Skip to content

Commit

Permalink
Merge pull request #1417 from tejal29/fix_repo_string
Browse files Browse the repository at this point in the history
change repo string to just string
  • Loading branch information
tejal29 authored Sep 9, 2020
2 parents 47e42e4 + 1990cb7 commit cb77f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/executor/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func CheckPushPermissions(opts *config.KanikoOptions) error {
if err != nil {
return errors.Wrap(err, "getting tag for destination")
}
if checked[destRef.Context().RepositoryStr()] {
if checked[destRef.Context().String()] {
continue
}

Expand Down Expand Up @@ -130,7 +130,7 @@ func CheckPushPermissions(opts *config.KanikoOptions) error {
if err := checkRemotePushPermission(destRef, creds.GetKeychain(), tr); err != nil {
return errors.Wrapf(err, "checking push permission for %q", destRef)
}
checked[destRef.Context().RepositoryStr()] = true
checked[destRef.Context().String()] = true
}
return nil
}
Expand Down

0 comments on commit cb77f2a

Please sign in to comment.