diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-02-10 08:14:20 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-02-10 08:14:20 -0800 |
commit | 7014ec56d829f3c8eb5c6bbfc9772417ad6065c6 (patch) | |
tree | 308d3b945cf4743000709895736bcb9ebfbb501d /lib/Vyatta/Interface.pm | |
parent | 9533a228447f69a90d48a8649644e37d4789f710 (diff) | |
download | vyatta-cfg-7014ec56d829f3c8eb5c6bbfc9772417ad6065c6.tar.gz vyatta-cfg-7014ec56d829f3c8eb5c6bbfc9772417ad6065c6.zip |
Fix missing bracket
Interface.pm syntax error.
Diffstat (limited to 'lib/Vyatta/Interface.pm')
-rwxr-xr-x | lib/Vyatta/Interface.pm | 8 |
1 files changed, 5 insertions, 3 deletions
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 |