From 7014ec56d829f3c8eb5c6bbfc9772417ad6065c6 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 10 Feb 2010 08:14:20 -0800 Subject: Fix missing bracket Interface.pm syntax error. --- lib/Vyatta/Interface.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/Vyatta') diff --git a/lib/Vyatta/Interface.pm b/lib/Vyatta/Interface.pm index 1231786..200cad8 100755 --- a/lib/Vyatta/Interface.pm +++ b/lib/Vyatta/Interface.pm @@ -153,6 +153,7 @@ sub new { if ($dev =~ /^ppp(\d+)/) { my $n = $1; my $eth = find_pppoe($n); + if ($eth) { my $self = { name => $name, @@ -160,9 +161,10 @@ sub new { path => "interfaces ethernet $eth pppoe $n", dev => $dev, vif => $vif, - }; - bless $self, $class; - return $self; + }; + bless $self, $class; + return $self; + } } return; # nothing -- cgit v1.2.3