summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-12-07 15:09:49 -0800
committerStig Thormodsrud <stig@vyatta.com>2010-12-07 15:09:49 -0800
commit8821fe965057a868ef75c67c7a7da41ba099e7ad (patch)
tree35fe50840951be86dae9131584ab7860c9f8ca32 /lib
parent76f873016c5996ea2c1a8219a01213b8aca64742 (diff)
downloadvyatta-cfg-8821fe965057a868ef75c67c7a7da41ba099e7ad.tar.gz
vyatta-cfg-8821fe965057a868ef75c67c7a7da41ba099e7ad.zip
Fix return value for address not configure on system.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Vyatta/Misc.pm2
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`;