Code

Followup commit for #3716
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 1 Apr 2010 07:46:55 +0000 (07:46 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 1 Apr 2010 07:46:55 +0000 (07:46 +0000)
In FAI::get_all_objects_for_a_given_base change the regex
to determine if a given object is in removed state from
'/removed$/' to '/removed/'. This makes it possible to determine
the removed state on packages with the state "|removed|freeze".

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17449 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-plugins/fai/admin/fai/class_FAI.inc

index 1d2ead0c1e8c258ecfc7415f501b4f49c0ea2e69..c3005f198be79b6f83cc2ce2fffda6aecd5f79eb 100644 (file)
@@ -73,7 +73,7 @@ class FAI
           $name = preg_replace("/".preg_quote($release, '/')."/i","",$attr['dn']);
 
           if(isset($attr['FAIstate'][0])){
-            if(preg_match("/removed$/",$attr['FAIstate'][0])){
+            if(preg_match("/removed/",$attr['FAIstate'][0])){
               if(isset($res[$name])){
                 unset($res[$name]);
               }