From dcbbb3bd027f9a0e4e2442d4544b520ddd805eca Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 19 Apr 2011 09:58:43 +0000 Subject: [PATCH] Updated creation of Distributions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20744 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../newConfigManagement/class_newConfigManagement.inc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc index 5cf92797a..21ffe2454 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc @@ -171,11 +171,7 @@ class newConfigManagement extends plugin $distPath = "/root/{$dist['name']}"; foreach($names as $rName){ $rPath .= '/'.$rName; - - $this->dataModel->addItem('Release',$distPath, $rName, $release); - - print_a(array('Release',$distPath, $rName, $release)); $distPath .= $rPath; } } @@ -624,11 +620,9 @@ class newConfigManagement extends plugin $imethod = $values['installation_method']; $mirror = $values['mirror']; + // Initiate the rpc request. $rpc = $this->config->getRpcHandle(); $res = $rpc->createDistribution($name, $itype, array('mirror'=>$mirror, 'install_method' => $imethod)); - - print_a(array($name, $itype, array('mirror'=>$mirror, 'install_method' => $imethod))); - if(!$rpc->success()){ msg_dialog::display(_("Error"), sprintf(_("Failed to save distributions: %s"), $rpc->get_error()),ERROR_DIALOG); return(NULL); -- 2.30.2