mirror of
https://github.com/containers/skopeo.git
synced 2025-07-04 10:26:48 +00:00
Merge pull request #893 from edsantiago/podman_info_broke
Fix for yet another breaking podman change
This commit is contained in:
commit
2d91b93ad0
@ -87,7 +87,16 @@ END_EXPECT
|
|||||||
# 1) Get current platform arch
|
# 1) Get current platform arch
|
||||||
# 2) Inspect container image is different from current platform arch
|
# 2) Inspect container image is different from current platform arch
|
||||||
# 3) Compare output w/ expected result
|
# 3) Compare output w/ expected result
|
||||||
arch=$(podman info --format '{{.host.arch}}')
|
|
||||||
|
# Here we see a revolting workaround for a podman incompatibility
|
||||||
|
# change: in April 2020, podman info completely changed format
|
||||||
|
# of the keys. What worked until then now throws an error. We
|
||||||
|
# need to work with both old and new podman.
|
||||||
|
arch=$(podman info --format '{{.host.arch}}' || true)
|
||||||
|
if [[ -z "$arch" ]]; then
|
||||||
|
arch=$(podman info --format '{{.Host.Arch}}')
|
||||||
|
fi
|
||||||
|
|
||||||
case $arch in
|
case $arch in
|
||||||
"amd64")
|
"amd64")
|
||||||
diff_arch_list="s390x ppc64le"
|
diff_arch_list="s390x ppc64le"
|
||||||
|
Loading…
Reference in New Issue
Block a user