summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-17 16:30:32 +0000
committerThierry Vignaud <tv@mageia.org>2012-10-17 16:30:32 +0000
commitc9e5315352e2e5b399f7d946b0c8f9a9d99f9155 (patch)
tree6f2fe0b7de735c77d9169d81d697c6566fca12ee /common
parent4183ce9f660f6a7ceceec889ed064f0c52e17128 (diff)
downloaddrakwizard-c9e5315352e2e5b399f7d946b0c8f9a9d99f9155.tar
drakwizard-c9e5315352e2e5b399f7d946b0c8f9a9d99f9155.tar.gz
drakwizard-c9e5315352e2e5b399f7d946b0c8f9a9d99f9155.tar.bz2
drakwizard-c9e5315352e2e5b399f7d946b0c8f9a9d99f9155.tar.xz
drakwizard-c9e5315352e2e5b399f7d946b0c8f9a9d99f9155.zip
(check_dhcp) make it work without global variable
Diffstat (limited to 'common')
-rw-r--r--common/Wizcommon.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/Wizcommon.pm b/common/Wizcommon.pm
index 5c14c545..088ba4c7 100644
--- a/common/Wizcommon.pm
+++ b/common/Wizcommon.pm
@@ -33,7 +33,8 @@ our @EXPORT = qw(check_started check_starts_on_boot test_host_domain);
my $net;
sub check_dhcp {
- $net->is_dhcp and return 'dhcp_warning';
+ my ($wiz) = @_;
+ $wiz->{net}->is_dhcp and return 'dhcp_warning';
}
sub new {