diff options
Diffstat (limited to 'lib/network')
-rw-r--r-- | lib/network/connection/ethernet.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/network/connection/ethernet.pm b/lib/network/connection/ethernet.pm index 7b7cfc4..3b60210 100644 --- a/lib/network/connection/ethernet.pm +++ b/lib/network/connection/ethernet.pm @@ -262,7 +262,9 @@ sub build_ifcfg_settings { sub write_settings { my ($self, $o_net, $o_modules_conf) = @_; - $o_modules_conf->set_alias($self->get_interface, $self->get_driver) if $o_modules_conf; + if ($o_modules_conf) { + $o_modules_conf->set_alias($self->get_interface, $self->get_driver); + } $self->SUPER::write_settings($o_net, $o_modules_conf); } |