diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2010-12-07 15:09:49 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2010-12-07 15:09:49 -0800 |
commit | 8821fe965057a868ef75c67c7a7da41ba099e7ad (patch) | |
tree | 35fe50840951be86dae9131584ab7860c9f8ca32 /lib/Vyatta | |
parent | 76f873016c5996ea2c1a8219a01213b8aca64742 (diff) | |
download | vyatta-cfg-8821fe965057a868ef75c67c7a7da41ba099e7ad.tar.gz vyatta-cfg-8821fe965057a868ef75c67c7a7da41ba099e7ad.zip |
Fix return value for address not configure on system.
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-x | lib/Vyatta/Misc.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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`; |