fix Net::MAC explosion - github issue #8

This commit is contained in:
Oliver Gorwits
2012-02-21 16:50:08 +00:00
parent 1ded81fa96
commit 96507e0d22

View File

@@ -67,8 +67,7 @@ ajax '/ajax/content/search/node' => sub {
my $mac = Net::MAC->new(mac => $node, 'die' => 0, verbose => 0);
my @active = (param('archived') ? () : (-bool => 'active'));
if (eval { $mac->as_IEEE }) {
if (! $mac->get_error) {
my $sightings = schema('netdisco')->resultset('Node')
->search_by_mac({mac => $mac->as_IEEE, @active});