diff --git a/src/services/swarm/host-storage.ts b/src/services/swarm/host-storage.ts index 3d015877b2..23e996fe80 100644 --- a/src/services/swarm/host-storage.ts +++ b/src/services/swarm/host-storage.ts @@ -68,8 +68,8 @@ export const hostStorageSchema = z.object({ collected_at: z.number().int(), cached: z.boolean(), filesystems: z.array(contractFilesystemSchema).transform(capArray), - docker_root_dir: cappedString, - docker_root_filesystem: cappedString, + docker_root_dir: z.nullable(cappedString), + docker_root_filesystem: z.nullable(cappedString), volumes: z.array(contractVolumeSchema).transform(capArray), neo4j: z.nullable(contractNeo4jSchema), errors: z.array(contractErrorSchema).transform(capArray), @@ -268,8 +268,8 @@ export function parseHostStorage(response: SwarmCmdResponse): HostStorageReading collectedAt: contract.collected_at, cached: contract.cached, filesystems, - dockerRootDir: contract.docker_root_dir, - dockerRootFilesystem: contract.docker_root_filesystem, + dockerRootDir: contract.docker_root_dir ?? "", + dockerRootFilesystem: contract.docker_root_filesystem ?? "", governingFilesystem, volumes, neo4j,