diff options
author | Miloslav Trmač <mitr@redhat.com> | 2018-07-27 02:56:57 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-08-01 18:22:58 +0000 |
commit | ecc1db39b53e0566aed7de7192db916cf44a9fcb (patch) | |
tree | c5c3d0ea5b884ffae179124e9dad3344c9feec0c /hack | |
parent | 24da27c3e9606994cc97821c9025565b5a4bf25d (diff) | |
download | podman-ecc1db39b53e0566aed7de7192db916cf44a9fcb.tar.gz podman-ecc1db39b53e0566aed7de7192db916cf44a9fcb.tar.bz2 podman-ecc1db39b53e0566aed7de7192db916cf44a9fcb.zip |
Use srcRef.StringWithinTransport() instead of parsing imgName again
Because srcRef is created by parsing imgName, both hard-code assumptions
about transport-specific formats of the strings, so that is neither better nor worse;
but we do less explicit parsing.
Should not change behavior for dir:, nor for fully-correct docker-archive:.
docker-archive:, though, also supports docker-archive:path:reference, where
the reference is ignored (with a warning) on read; in such cases the previous
code would use the reference only (not the path), the new code uses both
as the path. Neither works, we just change the failure mode (but
"error opening path:reference" is now more suggestive of the correct usage).
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Closes: #1176
Approved by: rhatdan
Diffstat (limited to 'hack')
0 files changed, 0 insertions, 0 deletions