Skip to content

Commit

Permalink
NAS-128468: Enclosure reports all disks as not attached to any pool
Browse files Browse the repository at this point in the history
  • Loading branch information
undsoft committed May 27, 2024
1 parent 4c3404a commit 976fbb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/core/classes/system-profiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export class SystemProfiler {
v.disks[name] = -1; // no children so we use this as placeholder
} else if (vdev.children.length > 0) {
vdev.children.forEach((disk, dIndex) => {
if (disk.device && disk.status != 'REMOVED') {
if (disk.status != 'REMOVED') {
const spl = disk.disk.split(/p(\d+)/g); // was disk.device
const name = spl[0];
v.disks[name] = dIndex;
Expand Down

0 comments on commit 976fbb1

Please sign in to comment.