Code

Updated creation of Distributions
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 19 Apr 2011 09:58:43 +0000 (09:58 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 19 Apr 2011 09:58:43 +0000 (09:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20744 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc

index 5cf92797aa2d205f411d439699886eb8139e6c97..21ffe2454ea0fbc0f3b47a1b1d03e98bdb94cbd4 100644 (file)
@@ -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);