mirror of
https://github.com/unraid/webgui.git
synced 2026-05-05 11:50:41 -05:00
Check pool state on ERROR condition
All other states are considered valid
This commit is contained in:
@@ -41,7 +41,7 @@ case 'state':
|
||||
$pools = explode(',',$_POST['pools']);
|
||||
$disks = parse_ini_file('state/disks.ini',true);
|
||||
$error = [];
|
||||
foreach ($pools as $pool) if ($disks[$pool]['state'] != 'STOPPED') $error[] = $pool.' - '.$disks[$pool]['state'];
|
||||
foreach ($pools as $pool) if (stripos($disks[$pool]['state'],'ERROR')===0) $error[] = $pool.' - '.$disks[$pool]['state'];
|
||||
echo implode('<br>',$error);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user