Code

Fixed saving of volume groups
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 11 May 2011 14:18:43 +0000 (14:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 11 May 2011 14:18:43 +0000 (14:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20808 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc

index fa293e8f48025d160ded26cddacab05a7ead7bae..87d0bcdff3b06aa782b6f3c3007004f165ec53b8 100644 (file)
@@ -241,7 +241,16 @@ class AddPartitionDialog
      */
     function save()
     {
-        if($this->selected_type == RAID_DEVICE){
+        if($this->selected_type == VOLUME_GROUP){
+            
+            // Get raid device properties
+            $devices = $this->vg_partitions;
+            $extend = $this->vg_extend;
+            $name = $this->vg_name;
+            $this->partitionObject->addVolumeGroup($name, $devices, $format=TRUE, $use_existing=FALSE, $extend);
+            return($this->partitionObject->success());
+
+        }elseif($this->selected_type == RAID_DEVICE){
 
             // Get raid device properties
             $devices = $this->r_partitions;