From: hickert Date: Tue, 19 Apr 2011 09:58:43 +0000 (+0000) Subject: Updated creation of Distributions X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dcbbb3bd027f9a0e4e2442d4544b520ddd805eca;p=gosa.git Updated creation of Distributions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20744 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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);