Random Project

More Exclusions

Hello:

I made a change along the same lines as the comment above to allow for more exclusions to be specified. My change to the code is here:

# process any exclusions, if they have been defined
if ($the_arguments{‘_arg2’}) {
# exclusion regex defined, decide if we want this row
my @excl = split(/,/,$the_arguments{‘_arg2’});
foreach my $service_exclusion (@excl)
{
if ($$row{‘DisplayName’}=~/$service_exclusion/ || $$row{‘Name’}=~/$service_exclusion/) {
# regex matches so exclude this row
$num_excluded++;
$debug && print “—> Excluding “$$row{‘DisplayName’}” ($$row{‘Name’})n”;
$process_this_row=0;
}
}
}

Thanks for this plugin, it is great!