From b129b4fd9437b22ed7e9ec6ce1e5cd9f6f9c9879 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 2 Oct 2008 11:35:42 +0000 Subject: [PATCH] Updated gotoSupportDaemon::append -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 --- .../goto/admin/systems/goto/class_workstationService.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc index 37d6fb8f6..1e4e348b6 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc @@ -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); } } -- 2.30.2