Code

Updated gotoSupportDaemon::append
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 2 Oct 2008 11:35:42 +0000 (11:35 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 2 Oct 2008 11:35:42 +0000 (11:35 +0000)
-Target was added automatically, added option to avoid this.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12591 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_workstationService.inc

index 37d6fb8f6a3fe1e16fb8d508a3ee1a231b1cdad4..1e4e348b657ac4ce6041c4f74ae6f115da775c37 100644 (file)
@@ -229,6 +229,8 @@ class workservice extends plugin
 
   function execute()
   {
+    $this->send_goto_reload();
+
     /* Call parent execute */
     plugin::execute();
 
@@ -542,8 +544,10 @@ class workservice extends plugin
         if(count($macs)){
           $tmp = new $evt['CLASS_NAME']($this->config);
           $tmp->set_type(TRIGGERED_EVENT);
-          $tmp->add_targets($macs);
-          if(!$o_queue->append($tmp)){
+          $target = $o_queue->get_host().":".$o_queue->get_port();
+          $tmp->add_targets(array($target));
+          $tmp->set_macs($macs);
+          if(!$o_queue->append($tmp,TRUE)){
             msg_dialog::display(_("Service infrastructure"),msgPool::siError($o_queue->get_error()),ERROR_DIALOG);
           }
         }