From dc88120e5056c647e3ec51fd8883b4a39b577d97 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 28 Sep 2009 06:23:41 +0000 Subject: [PATCH] Updated opsi generic -Do not save anything while we haven't read all data from the gosa-si. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14358 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc b/gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc index 52c4ed89f..22476bae9 100644 --- a/gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc +++ b/gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc @@ -234,6 +234,13 @@ class opsiGeneric extends plugin */ public function check() { + + // In case of initialization problem, we do not save anything. + // We can skip checks here, the date isn't usable. + if($this->init_failed){ + return; + }; + $messages = plugin::check(); $messages= array_merge($messages, $this->netConfigDNS->check()); @@ -403,6 +410,9 @@ class opsiGeneric extends plugin */ public function save() { + if($this->init_failed){ + return; + } /* Check if we have to create a new opsi client or just have to save client modifications. @@ -567,6 +577,9 @@ class opsiGeneric extends plugin */ public function remove_from_parent() { + if($this->init_failed){ + return; + } $this->netConfigDNS->remove_from_parent(); $this->opsi->del_client($this->hostId); -- 2.30.2