From 8821fe965057a868ef75c67c7a7da41ba099e7ad Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Tue, 7 Dec 2010 15:09:49 -0800 Subject: Fix return value for address not configure on system. --- lib/Vyatta/Misc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Vyatta/Misc.pm b/lib/Vyatta/Misc.pm index a6545ef..e709112 100755 --- a/lib/Vyatta/Misc.pm +++ b/lib/Vyatta/Misc.pm @@ -58,7 +58,7 @@ sub is_primary_address { my $ref = get_ipaddr_intf_hash(); my %hash = %{$ref}; if (!defined $hash{$ip_address}) { - return 1; + return; } my $line = `ip address show $hash{$ip_address} | grep 'inet' | head -n 1`; -- cgit v1.2.3