Browse Source

fix msterDisk bug

andre 4 years ago
parent
commit
281ef67c1c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/UI/Disk/Providers/DiskProvider.php

+ 3 - 0
app/UI/Disk/Providers/DiskProvider.php

@@ -167,6 +167,9 @@ class DiskProvider extends BaseDataProvider implements ClientArea
             if($hd->isMaster()){
             if($hd->isMaster()){
                 continue;
                 continue;
             }
             }
+            if($hd->getName() == 'disk-0'){
+                continue;
+            }
             if(preg_match('/unused/', $hd->getId())){
             if(preg_match('/unused/', $hd->getId())){
                 $hd->delete();
                 $hd->delete();
                 break;
                 break;