From 089b82abd285087adbeb8bc5d16e81df786777aa Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 10 Aug 2009 11:20:33 +0000 Subject: [PATCH] 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 --- gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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'])){ -- 2.30.2