diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-10-17 16:30:33 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-10-17 16:30:33 +0000 |
commit | 4baba1573a2757cbcedaf629498a4387af6b3cc3 (patch) | |
tree | 39e14b7a93a269972fdfe665e9a3dae1d3cd8239 /common/Wizcommon.pm | |
parent | c9e5315352e2e5b399f7d946b0c8f9a9d99f9155 (diff) | |
download | drakwizard-4baba1573a2757cbcedaf629498a4387af6b3cc3.tar drakwizard-4baba1573a2757cbcedaf629498a4387af6b3cc3.tar.gz drakwizard-4baba1573a2757cbcedaf629498a4387af6b3cc3.tar.bz2 drakwizard-4baba1573a2757cbcedaf629498a4387af6b3cc3.tar.xz drakwizard-4baba1573a2757cbcedaf629498a4387af6b3cc3.zip |
no global variable
Diffstat (limited to 'common/Wizcommon.pm')
-rw-r--r-- | common/Wizcommon.pm | 5 |
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; } |