diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-23 14:07:54 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-23 14:07:54 -0700 |
commit | 5acbf279c7fd5d47c28db0b29ea76b3e81e3e920 (patch) | |
tree | b773a7ed05882840ab4048366984fa29e622870b /lib/Vyatta | |
parent | 8c1739680493df2e23ef0d098a44c50e2f1ccecc (diff) | |
download | vyatta-cfg-5acbf279c7fd5d47c28db0b29ea76b3e81e3e920.tar.gz vyatta-cfg-5acbf279c7fd5d47c28db0b29ea76b3e81e3e920.zip |
Cleanup description string
Remove trailing newline and any leading whitespace.
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-x | lib/Vyatta/Interface.pm | 2 |
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; } |