Expand search to comments

This commit is contained in:
Jamie Cameron
2010-08-25 10:38:45 -07:00
parent 8ab07986fc
commit b00354e88e

View File

@ -43,6 +43,7 @@ if (@hosts) {
$fixed = &dhcpd::find("fixed-address", $_->{'members'});
$hard = &dhcpd::find("hardware", $_->{'members'});
$_->{'values'}->[0] =~ /\Q$s\E/i ||
$_->{'comment'} =~ /\Q$s\E/i ||
$fixed->{'values'}->[0] =~ /\Q$s\E/i ||
$hard->{'values'}->[1] =~ /\Q$s\E/i } @hosts;
}