summaryrefslogtreecommitdiffstats
path: root/lib/network/connection/ethernet.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-11-17 11:21:10 +0000
committerOlivier Blin <oblin@mandriva.com>2008-11-17 11:21:10 +0000
commit05cabd5cf7ac460072a1a60855db0dd231410c22 (patch)
treee923020d805a2a0aea265fefd597506d9315cfc6 /lib/network/connection/ethernet.pm
parent133137e1966926e8032442590a03dc7a94035a77 (diff)
downloaddrakx-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/network/connection/ethernet.pm')
-rw-r--r--lib/network/connection/ethernet.pm2
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 {