diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-11-17 11:21:10 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-11-17 11:21:10 +0000 |
commit | 05cabd5cf7ac460072a1a60855db0dd231410c22 (patch) | |
tree | e923020d805a2a0aea265fefd597506d9315cfc6 /lib | |
parent | 133137e1966926e8032442590a03dc7a94035a77 (diff) | |
download | drakx-net-05cabd5cf7ac460072a1a60855db0dd231410c22.tar drakx-net-05cabd5cf7ac460072a1a60855db0dd231410c22.tar.gz drakx-net-05cabd5cf7ac460072a1a60855db0dd231410c22.tar.bz2 drakx-net-05cabd5cf7ac460072a1a60855db0dd231410c22.tar.xz drakx-net-05cabd5cf7ac460072a1a60855db0dd231410c22.zip |
remember ethernet interface, it is not likely to change, and it is useful to keep it to match objects with interfaces on device removal events
Diffstat (limited to 'lib')
-rw-r--r-- | lib/network/connection/ethernet.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/connection/ethernet.pm b/lib/network/connection/ethernet.pm index 31e98cc..e0fef99 100644 --- a/lib/network/connection/ethernet.pm +++ b/lib/network/connection/ethernet.pm @@ -50,7 +50,7 @@ sub get_metric { sub get_interface { my ($self) = @_; - $self->{device}{interface} || device_to_interface($self->{device}); + $self->{device}{interface} ||= device_to_interface($self->{device}); } sub check_device { |