Code

Updated disk hanlding
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 5 Jun 2007 08:30:49 +0000 (08:30 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 5 Jun 2007 08:30:49 +0000 (08:30 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6547 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiPartitionTable.inc

index 6540535a97545f51d5da26d2310bfe24757375ed..cd23610c2c15a7af5fea9bdb363c46df012aa53a 100644 (file)
@@ -457,7 +457,6 @@ class faiPartitionTable extends plugin
           }
 
           /* Create partition dn and add necessary attributes */
-          $partition_dn_del = "FAIpartitionNr=".$partition_attrs['FAIpartitionNr'].",".$disk_dn;      
           $partition_attrs['FAIpartitionNr']= $part_nr;  
           $partition_dn= "FAIpartitionNr=".$partition_attrs['FAIpartitionNr'].",".$disk_dn;      
           $partition_attrs['objectClass']= array("top","FAIclass","FAIpartitionEntry");
@@ -487,6 +486,9 @@ class faiPartitionTable extends plugin
 
           /* Collect all operations */
           if(($partition['status'] == "delete")&&($disk['status']!="new")){
+
+            $partition_dn_del = "FAIpartitionNr=".$partition['FAIpartitionNr'].",".$disk_dn;      
+
             $Todo['delete'][$partition_dn_del] = $partition_attrs;
           }elseif($partition['status'] == "new"){
             $Todo['rest'][$partition_dn] = $partition_attrs;