fix: omv integrations is unable to correctly retrieve the file system when using omv-zfs (#2337)
* fix: omv integrations is unable to correctly retrieve the file system when using omv-zfs
This commit is contained in:
@@ -67,7 +67,7 @@ export class OpenMediaVaultIntegration extends Integration {
|
|||||||
const fileSystem = fileSystemResult.data.response.map((fileSystem) => ({
|
const fileSystem = fileSystemResult.data.response.map((fileSystem) => ({
|
||||||
deviceName: fileSystem.devicename,
|
deviceName: fileSystem.devicename,
|
||||||
used: fileSystem.used,
|
used: fileSystem.used,
|
||||||
available: fileSystem.available,
|
available: fileSystem.available.toString(),
|
||||||
percentage: fileSystem.percentage,
|
percentage: fileSystem.percentage,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export const fileSystemSchema = z.object({
|
|||||||
z.object({
|
z.object({
|
||||||
devicename: z.string(),
|
devicename: z.string(),
|
||||||
used: z.string(),
|
used: z.string(),
|
||||||
available: z.string(),
|
available: z.string().or(z.number()),
|
||||||
percentage: z.number(),
|
percentage: z.number(),
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user