mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-10 16:52:15 -06:00
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
8486354eba
commit
e7be2bfd0d
@ -129,8 +129,9 @@ class AddonBuild(FileConfiguration, CoreSysAttributes):
|
|||||||
def get_docker_config_json(self) -> str | None:
|
def get_docker_config_json(self) -> str | None:
|
||||||
"""Generate Docker config.json content with registry credentials for base image.
|
"""Generate Docker config.json content with registry credentials for base image.
|
||||||
|
|
||||||
Returns JSON string with credentials, or None if no credentials needed.
|
Returns a JSON string with registry credentials for the base image's registry,
|
||||||
Must be run in executor.
|
or None if no matching registry is configured.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if not self.sys_docker.config.registries:
|
if not self.sys_docker.config.registries:
|
||||||
return None
|
return None
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user