summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/network/connection/cellular_card.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/connection/cellular_card.pm b/lib/network/connection/cellular_card.pm
index 96480b2..1bbb23e 100644
--- a/lib/network/connection/cellular_card.pm
+++ b/lib/network/connection/cellular_card.pm
@@ -139,7 +139,7 @@ sub prepare_device {
my $driver = $self->get_driver;
require modules;
- my $modules_conf = !is_empty_hash_ref($::o) ? $::o->{modules_conf} : modules::any_conf->read;
+ my $modules_conf = ref($::o) && $::o->{modules_conf} || modules::any_conf->read;
modules::load_and_configure($modules_conf, $driver,
if_($driver eq 'usbserial', join(
' ',