Fix database MAC look-up when MAC not returned by nbtstat
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|
||||||
* Fix NetBIOS report with search on blank domain
|
* Fix NetBIOS report with search on blank domain
|
||||||
|
* Fix database MAC lookup when MAC not returned by nbtstat
|
||||||
|
|
||||||
2.024000 - 2014-02-22
|
2.024000 - 2014-02-22
|
||||||
|
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ sub _filter_nbname {
|
|||||||
|
|
||||||
# Just assume it's the last MAC we saw this IP at.
|
# Just assume it's the last MAC we saw this IP at.
|
||||||
my $node_ip = schema('netdisco')->resultset('NodeIp')
|
my $node_ip = schema('netdisco')->resultset('NodeIp')
|
||||||
->single( { ip => $ip, active => \'true' } );
|
->single( { ip => $ip, -bool => 'active' } );
|
||||||
|
|
||||||
if ( !defined $node_ip ) {
|
if ( !defined $node_ip ) {
|
||||||
debug ' no MAC for %s returned by nbtstat or in DB', $ip;
|
debug ' no MAC for %s returned by nbtstat or in DB', $ip;
|
||||||
|
|||||||
Reference in New Issue
Block a user