From d5565423f2635e50cc6f160a8f0d5e6e2da3468f Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Wed, 29 May 2013 19:51:37 +0100 Subject: [PATCH] avoid warning on undefined remote type --- Netdisco/lib/App/Netdisco/Core/Discover.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Netdisco/lib/App/Netdisco/Core/Discover.pm b/Netdisco/lib/App/Netdisco/Core/Discover.pm index 6d86d1e0..742aa8ae 100644 --- a/Netdisco/lib/App/Netdisco/Core/Discover.pm +++ b/Netdisco/lib/App/Netdisco/Core/Discover.pm @@ -656,6 +656,9 @@ sub store_neighbors { $remote_type = 'IP Phone - '. $remote_type if $remote_type !~ /ip phone/i; } + else { + $remote_type = ''; + } # hack for devices seeing multiple neighbors on the port if (ref [] eq ref $remote_ip) {