From e8d66f98c3651b7db8bc85ce94473e919b4bc649 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 22 Feb 2008 10:44:50 +0000 Subject: expand for next commit --- lib/network/connection/ethernet.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/network/connection/ethernet.pm') 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); } -- cgit v1.2.1