diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-10-17 16:30:32 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-10-17 16:30:32 +0000 |
commit | c9e5315352e2e5b399f7d946b0c8f9a9d99f9155 (patch) | |
tree | 6f2fe0b7de735c77d9169d81d697c6566fca12ee /common | |
parent | 4183ce9f660f6a7ceceec889ed064f0c52e17128 (diff) | |
download | drakwizard-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.pm | 3 |
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 { |