Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Stefan Agner 2025-11-27 10:14:20 +01:00 committed by GitHub
parent 8486354eba
commit e7be2bfd0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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