Skip to content

Commit

Permalink
fix(api): only include disks that are non-zero size
Browse files Browse the repository at this point in the history
fixes #218
  • Loading branch information
MauriceNino committed Jul 19, 2022
1 parent f409e9d commit 5056532
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/api/src/static-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ const loadStorageInfo = async (): Promise<void> => {
]);

const raidMembers = blocks.filter(block => block.fsType.endsWith('_member'));
const blockDisks = blocks.filter(block => block.type === 'disk');
const blockDisks = blocks.filter(
block => block.type === 'disk' && block.size > 0
);

const blockLayout = blockDisks
.map(disk => {
Expand Down

0 comments on commit 5056532

Please sign in to comment.