summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/Vyatta/Interface.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Vyatta/Interface.pm b/lib/Vyatta/Interface.pm
index 878e149..50122b4 100755
--- a/lib/Vyatta/Interface.pm
+++ b/lib/Vyatta/Interface.pm
@@ -260,6 +260,8 @@ sub description {
or return;
my $description = <$ifalias>;
close $ifalias;
+ chomp $description if $description;
+
return $description;
}