Skip to content

Commit

Permalink
podman: clearer architecture check error message
Browse files Browse the repository at this point in the history
This message may be raised when /bin/podman fails for any reason, not
just when that image arch != host arch.
  • Loading branch information
praiskup committed Aug 30, 2023
1 parent 395fc07 commit 49c9cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mock/py/mockbuild/podman.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def cp(self, destination, tar_cmd):
logger.info("Copy content of container %s to %s", self.image, destination)

if not podman_check_native_image_architecture(self.image, logger):
raise BootstrapError("Pulled image has invalid architecture")
raise BootstrapError("Container image architecture check failed")

with self.mounted_image() as mount_path:
# pipe-out the temporary mountpoint with the help of tar utility
Expand Down

0 comments on commit 49c9cb6

Please sign in to comment.