mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-13 04:06:33 +00:00
better merge base image (#280)
* better merge base image * fix lint * fix lint * Update build.py * fix lint
This commit is contained in:
parent
13a2c1ecd9
commit
63d82ce03e
@ -1,7 +1,7 @@
|
||||
"""HassIO addons build environment."""
|
||||
from pathlib import Path
|
||||
|
||||
from .validate import SCHEMA_BUILD_CONFIG
|
||||
from .validate import SCHEMA_BUILD_CONFIG, BASE_IMAGE
|
||||
from ..const import ATTR_SQUASH, ATTR_BUILD_FROM, ATTR_ARGS, META_ADDON
|
||||
from ..tools import JsonConfig
|
||||
|
||||
@ -24,7 +24,8 @@ class AddonBuild(JsonConfig):
|
||||
@property
|
||||
def base_image(self):
|
||||
"""Base images for this addon."""
|
||||
return self._data[ATTR_BUILD_FROM][self.config.arch]
|
||||
return self._data[ATTR_BUILD_FROM].get(
|
||||
self.config.arch, BASE_IMAGE[self.config.arch])
|
||||
|
||||
@property
|
||||
def squash(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user