From d6b2647400b102710d779b61a4c1c636ebdca64a Mon Sep 17 00:00:00 2001 From: psc Date: Thu, 1 Apr 2010 07:46:55 +0000 Subject: [PATCH] Followup commit for #3716 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc b/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc index 1d2ead0c1..c3005f198 100644 --- a/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc +++ b/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc @@ -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]); } -- 2.30.2