Add null check on user path in mounts (#5446)

This commit is contained in:
Mike Degatano 2024-11-22 09:54:21 -05:00 committed by GitHub
parent 7a55f58a5f
commit d11d59dd92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,7 +35,9 @@ class APIMounts(CoreSysAttributes):
mount.to_dict()
| {
ATTR_STATE: mount.state,
ATTR_USER_PATH: mount.container_where.as_posix(),
ATTR_USER_PATH: mount.container_where.as_posix()
if mount.container_where
else None,
}
for mount in self.sys_mounts.mounts
],