diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-05 21:13:18 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-05 21:13:18 +0000 |
commit | 0177f434b7cd8d5e394f5858ee672d6991f2480b (patch) | |
tree | f592b1b8946d39d82ec9dc273b7acba7254ed40c /lib/network/connection | |
parent | 2c2312dc57cca2ced50e2d1c7526c99c5042edfe (diff) | |
download | drakx-net-0177f434b7cd8d5e394f5858ee672d6991f2480b.tar drakx-net-0177f434b7cd8d5e394f5858ee672d6991f2480b.tar.gz drakx-net-0177f434b7cd8d5e394f5858ee672d6991f2480b.tar.bz2 drakx-net-0177f434b7cd8d5e394f5858ee672d6991f2480b.tar.xz drakx-net-0177f434b7cd8d5e394f5858ee672d6991f2480b.zip |
style
Diffstat (limited to 'lib/network/connection')
-rw-r--r-- | lib/network/connection/ethernet.pm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/network/connection/ethernet.pm b/lib/network/connection/ethernet.pm index 95fd17e..da83097 100644 --- a/lib/network/connection/ethernet.pm +++ b/lib/network/connection/ethernet.pm @@ -23,9 +23,12 @@ sub get_devices() { sub get_unlisted_devices { my ($interfaces, $listed_devices) = @_; my @unlisted_interfaces = sort(difference2($interfaces, [ map { device_to_interface($_) } @$listed_devices ])); - map { interface_to_device($_) || +{ - description => network::tools::is_virtual_interface($_) ? N("Virtual interface") : $_, - interface => $_ }, + map { + interface_to_device($_) || + +{ + description => network::tools::is_virtual_interface($_) ? N("Virtual interface") : $_, + interface => $_ + }; } @unlisted_interfaces; } |