From 989a8d450db4611658355b64847bda73ccf94364 Mon Sep 17 00:00:00 2001 From: "Eric A. Miller" Date: Sun, 23 Feb 2014 16:11:04 -0500 Subject: [PATCH] Fix database MAC look-up when MAC not returned by nbtstat --- Netdisco/Changes | 1 + Netdisco/lib/App/Netdisco/Core/Nbtstat.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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;