From: hickert Date: Wed, 11 May 2011 14:18:43 +0000 (+0000) Subject: Fixed saving of volume groups X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3463e9a4cf5379a26ece147a55e1e3637be727cd;p=gosa.git Fixed saving of volume groups git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20808 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc index fa293e8f4..87d0bcdff 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc +++ b/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc @@ -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;