mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-16 13:46:31 +00:00
Null check for meta in meta_mounts (#4326)
This commit is contained in:
parent
1feda7d89f
commit
b86a6d292f
@ -114,6 +114,8 @@ class DockerInterface(CoreSysAttributes):
|
|||||||
@property
|
@property
|
||||||
def meta_mounts(self) -> list[dict[str, Any]]:
|
def meta_mounts(self) -> list[dict[str, Any]]:
|
||||||
"""Return meta data of mounts for container/image."""
|
"""Return meta data of mounts for container/image."""
|
||||||
|
if not self._meta:
|
||||||
|
return []
|
||||||
return self._meta.get("Mounts", [])
|
return self._meta.get("Mounts", [])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user