Code

Set macAddress to must for opsi hosts.
[gosa.git] / gosa-plugins / opsi / admin / opsi / class_opsigeneric.inc
index 64546c5a54cbe7e5933f0ce2003440abefdfd614..bc3740b07406f6767ad44c3b9f9a7cb19c4ae165 100644 (file)
@@ -127,9 +127,7 @@ class opsiGeneric extends plugin
 
     // Get package info
     $list = array(); 
-    if(!empty($this->hostId)){
-      $list = $this->opsi->get_full_product_host_information($this->hostId);
-    }
+    $list = $this->opsi->get_full_product_host_information($this->hostId);
     $err |= $this->opsi->is_error();
 
     /* Read informations about available netboot products. 
@@ -202,7 +200,7 @@ class opsiGeneric extends plugin
       $this->netConfigDNS->set_acl_category("opsi");
       $this->netConfigDNS->set_acl_base($this->config->current['BASE']);
       $this->netConfigDNS->IPisMust = FALSE;
-      $this->netConfigDNS->MACisMust = FALSE;
+      $this->netConfigDNS->MACisMust = TRUE;
     }
   }