mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-29 12:06:30 +00:00
Docker info more robust (#3720)
This commit is contained in:
parent
9266062709
commit
a5cc3cba63
@ -56,10 +56,10 @@ class DockerInfo:
|
|||||||
def new(data: dict[str, Any]):
|
def new(data: dict[str, Any]):
|
||||||
"""Create a object from docker info."""
|
"""Create a object from docker info."""
|
||||||
return DockerInfo(
|
return DockerInfo(
|
||||||
AwesomeVersion(data["ServerVersion"]),
|
AwesomeVersion(data.get("ServerVersion", "0.0.0")),
|
||||||
data["Driver"],
|
data.get("Driver", "unknown"),
|
||||||
data["LoggingDriver"],
|
data.get("LoggingDriver", "unknown"),
|
||||||
data["CgroupVersion"],
|
data.get("CgroupVersion", "1"),
|
||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user