summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-23 14:07:54 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-23 14:07:54 -0700
commit5acbf279c7fd5d47c28db0b29ea76b3e81e3e920 (patch)
treeb773a7ed05882840ab4048366984fa29e622870b /lib
parent8c1739680493df2e23ef0d098a44c50e2f1ccecc (diff)
downloadvyatta-cfg-5acbf279c7fd5d47c28db0b29ea76b3e81e3e920.tar.gz
vyatta-cfg-5acbf279c7fd5d47c28db0b29ea76b3e81e3e920.zip
Cleanup description string
Remove trailing newline and any leading whitespace.
Diffstat (limited to 'lib')
-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;
}