summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/Wizcommon.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/common/Wizcommon.pm b/common/Wizcommon.pm
index 088ba4c7..106a9a44 100644
--- a/common/Wizcommon.pm
+++ b/common/Wizcommon.pm
@@ -30,8 +30,6 @@ use MDK::Wizard::IFCFG;
our @ISA = qw(Exporter);
our @EXPORT = qw(check_started check_starts_on_boot test_host_domain);
-my $net;
-
sub check_dhcp {
my ($wiz) = @_;
$wiz->{net}->is_dhcp and return 'dhcp_warning';
@@ -39,9 +37,8 @@ sub check_dhcp {
sub new {
my ($class) = @_;
- $net = new MDK::Wizard::IFCFG;
bless {
- net => $net,
+ net => MDK::Wizard::IFCFG->new,
}, $class;
}