summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-10 08:14:20 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-10 08:14:20 -0800
commit7014ec56d829f3c8eb5c6bbfc9772417ad6065c6 (patch)
tree308d3b945cf4743000709895736bcb9ebfbb501d
parent9533a228447f69a90d48a8649644e37d4789f710 (diff)
downloadvyatta-cfg-7014ec56d829f3c8eb5c6bbfc9772417ad6065c6.tar.gz
vyatta-cfg-7014ec56d829f3c8eb5c6bbfc9772417ad6065c6.zip
Fix missing bracket
Interface.pm syntax error.
-rwxr-xr-xlib/Vyatta/Interface.pm8
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