Fix add-on is_valid check (#2497)

This commit is contained in:
Franck Nijhof 2021-02-01 11:27:34 +01:00 committed by GitHub
parent c1de50266a
commit 6bb0210f1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,8 +52,10 @@ class AddonBuild(JsonConfig, CoreSysAttributes):
def is_valid(self) -> bool:
"""Return true if the build env is valid."""
return all(
self.addon.path_location.is_dir(),
Path(self.addon.path_location, "Dockerfile").is_file(),
[
self.addon.path_location.is_dir(),
Path(self.addon.path_location, "Dockerfile").is_file(),
]
)
def get_docker_args(self, version: AwesomeVersion):