diff options
author | Miloslav Trmač <mitr@redhat.com> | 2019-01-09 21:01:56 +0100 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2019-01-14 04:07:23 +0100 |
commit | 633501b1b7450676c47d891092b53680206b8398 (patch) | |
tree | 79719753914127aa703f0858eb6b1cf390ed1a3c /libpod/image/parts.go | |
parent | 81204487dbf9903f4a8784be9a580f8a46d1d381 (diff) | |
download | podman-633501b1b7450676c47d891092b53680206b8398.tar.gz podman-633501b1b7450676c47d891092b53680206b8398.tar.bz2 podman-633501b1b7450676c47d891092b53680206b8398.zip |
Use getPullRefPair / getSinglePullRefPairGoal in pullGoalFromPossiblyUnqualifiedName
This shortens the code a bit, but most importantly ensures that all pulls from
docker.Transport are processed exactly the same way, and there is only a single
store.ParseStoreReference in the pull code.
It's a bit wasteful to call decompose() in getPullRefPair just after
pullGoalFromPossiblyUnqualifiedName has qualified the name, but on balance
only having exactly one code path seems worth it. Alternatively we could
split getPullRefPairToQualifiedDestination from getPullRefPair.
Should not change behavior.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'libpod/image/parts.go')
0 files changed, 0 insertions, 0 deletions