Skip to content

Commit

Permalink
Also pass architecture on add-on restore
Browse files Browse the repository at this point in the history
  • Loading branch information
agners committed Dec 21, 2023
1 parent 5b2de2c commit ee4a8b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions supervisor/addons/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1205,12 +1205,14 @@ def _extract_tarfile():
await self.instance.import_image(image_file)
else:
with suppress(DockerError):
await self.instance.install(version, restore_image)
await self.instance.install(
version, restore_image, self.arch
)
await self.instance.cleanup()
elif self.instance.version != version or self.legacy:
_LOGGER.info("Restore/Update of image for addon %s", self.slug)
with suppress(DockerError):
await self.instance.update(version, restore_image)
await self.instance.update(version, restore_image, self.arch)
self._check_ingress_port()

# Restore data and config
Expand Down

0 comments on commit ee4a8b0

Please sign in to comment.