From: hickert Date: Thu, 14 Oct 2010 12:13:44 +0000 (+0000) Subject: Updated autonet completition for systems X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ac8fa41a2da39210097495a43b32102396f7ea02;p=gosa.git Updated autonet completition for systems -Display error message if rpc communication failed. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20044 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc index 0c7fb3f42..70deaaa06 100644 --- a/gosa-plugins/systems/admin/systems/class_termDNS.inc +++ b/gosa-plugins/systems/admin/systems/class_termDNS.inc @@ -310,9 +310,12 @@ class termDNS extends plugin if ($this->config->get_cfg_value("core","gosaRpcServer") != ""){ $rpc = $this->config->getRpcHandle(); $res = $rpc->networkCompletion($this->cn); - if(isset($res['ip']) && tests::is_ip($res['ip'])) $this->ipHostNumber= $res['ip']; - if(isset($res['mac']) && tests::is_mac($res['mac'])) $this->macAddress= $res['mac']; - + if(!$rpc->success()){ + msg_dialog::display(_("Error"), msgPool::rpcError($rpc->get_error()), ERROR_DIALOG); + }else{ + if(isset($res['ip']) && tests::is_ip($res['ip'])) $this->ipHostNumber= $res['ip']; + if(isset($res['mac']) && tests::is_mac($res['mac'])) $this->macAddress= $res['mac']; + } }elseif ($config->get_cfg_value("core","gosaSupportURI") != ""){ $d= new gosaSupportDaemon(TRUE, 0.5);