From: hickert Date: Mon, 10 Aug 2009 11:20:33 +0000 (+0000) Subject: Updated FAI partition handling. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=089b82abd285087adbeb8bc5d16e81df786777aa;p=gosa.git Updated FAI partition handling. -Skip 'count' index for diskOptions. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14028 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc b/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc index c3ce94500..f21e5e012 100644 --- a/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc +++ b/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc @@ -53,7 +53,14 @@ class faiPartitionTable extends plugin } else { $objects['FAIdiskType'] = $obj['FAIdiskType']; } - $objects['FAIdiskOption'] = $obj['FAIdiskOption']; + + // Get disk options, without 'count' index. + $objects['FAIdiskOption'] = array(); + if (isset($obj['FAIdiskOption'])){ + for($i=0;$i<$obj['FAIdiskOption']['count'];$i++){ + $objects['FAIdiskOption'][] = $obj['FAIdiskOption'][$i]; + } + } // Transform potential lvm information if (isset($obj['FAIlvmDevice'])){