summaryrefslogtreecommitdiffstats
path: root/lib/network/connection/ethernet.pm
diff options
context:
space:
mode:
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 {