diff --git a/Netdisco/Changes b/Netdisco/Changes index 342f741e..d20a5e6b 100644 --- a/Netdisco/Changes +++ b/Netdisco/Changes @@ -3,6 +3,7 @@ [BUG FIXES] * Fix NetBIOS report with search on blank domain + * Fix database MAC lookup when MAC not returned by nbtstat 2.024000 - 2014-02-22 diff --git a/Netdisco/lib/App/Netdisco/Core/Nbtstat.pm b/Netdisco/lib/App/Netdisco/Core/Nbtstat.pm index 4f18aff9..581e70f5 100644 --- a/Netdisco/lib/App/Netdisco/Core/Nbtstat.pm +++ b/Netdisco/lib/App/Netdisco/Core/Nbtstat.pm @@ -101,7 +101,7 @@ sub _filter_nbname { # Just assume it's the last MAC we saw this IP at. my $node_ip = schema('netdisco')->resultset('NodeIp') - ->single( { ip => $ip, active => \'true' } ); + ->single( { ip => $ip, -bool => 'active' } ); if ( !defined $node_ip ) { debug ' no MAC for %s returned by nbtstat or in DB', $ip;