summaryrefslogtreecommitdiff
path: root/libpod/image/testdata
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2018-07-28 03:50:30 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-01 18:22:59 +0000
commit754fc8e8ecf98ebd34140ee1414f96665d84b883 (patch)
treeae760e514882b3a70f4b1fd6d7673e1d2d8561c6 /libpod/image/testdata
parent18c4e2c83574ff1b99f9bf1d2d60d62770378ee3 (diff)
downloadpodman-754fc8e8ecf98ebd34140ee1414f96665d84b883.tar.gz
podman-754fc8e8ecf98ebd34140ee1414f96665d84b883.tar.bz2
podman-754fc8e8ecf98ebd34140ee1414f96665d84b883.zip
Call imageNameForSaveDestination while creating the references
Instead of creating a reference string and then checking it again to see which kind of archive it is, just call imageNameForSaveDestination at the place where we already know what kind of archive it is because we are making that decision. This also notably fixes the use of strings.CONTAINS to see whether the just constructed strings start with one of the transport names; that would match anywhere in the path. Signed-off-by: Miloslav Trmač <mitr@redhat.com> Closes: #1176 Approved by: rhatdan
Diffstat (limited to 'libpod/image/testdata')
0 files changed, 0 insertions, 0 deletions