Fix database MAC look-up when MAC not returned by nbtstat

This commit is contained in:
Eric A. Miller
2014-02-23 16:11:04 -05:00
parent be66c70636
commit 989a8d450d
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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;