From 70a6d1482e7a2dc20d97b6207b8e4433cc032ada Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 6 Mar 2008 15:31:16 +0000 Subject: [PATCH] Updated terminal / Workstation If a ws/term is removed, all entries in the gosa-si (gosaDaemonQueue) will be removed too. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9397 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/admin/systems/goto/class_terminalGeneric.inc | 7 +++++++ .../goto/admin/systems/goto/class_workstationGeneric.inc | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc index d71ad9196..5d1f47366 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc @@ -330,6 +330,13 @@ class termgeneric extends plugin $og->save (); } } + + /* Clean queue form entries with this mac + */ + if(class_available("gosaSupportDaemon") && tests::is_mac($this->netConfigDNS->orig_macAddress)){ + $q = new gosaSupportDaemon(); + $q->clean_queue_from_mac($this->netConfigDNS->orig_macAddress); + } } } diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc index 7cad284b4..a103b807b 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc @@ -337,6 +337,13 @@ class workgeneric extends plugin } } + /* Clean queue form entries with this mac + */ + if(class_available("gosaSupportDaemon") && tests::is_mac($this->netConfigDNS->orig_macAddress)){ + $q = new gosaSupportDaemon(); + $q->clean_queue_from_mac($this->netConfigDNS->orig_macAddress); + } + if(isset($_POST["inheritAll"])){ $this->set_everything_to_inherited(); } -- 2.30.2