summaryrefslogtreecommitdiffstats
path: root/dns_wizard
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-17 16:54:47 +0000
committerThierry Vignaud <tv@mageia.org>2012-10-17 16:54:47 +0000
commit70f78f71033cf75f6bb74ce9d165cae61840018c (patch)
treee49d16efd11c77e78b2e2404f00ac6291e8f0910 /dns_wizard
parent3942ffdf7a911f8897b33a68f65b1c9d35248351 (diff)
downloaddrakwizard-70f78f71033cf75f6bb74ce9d165cae61840018c.tar
drakwizard-70f78f71033cf75f6bb74ce9d165cae61840018c.tar.gz
drakwizard-70f78f71033cf75f6bb74ce9d165cae61840018c.tar.bz2
drakwizard-70f78f71033cf75f6bb74ce9d165cae61840018c.tar.xz
drakwizard-70f78f71033cf75f6bb74ce9d165cae61840018c.zip
perl_checker cleanups
Diffstat (limited to 'dns_wizard')
-rw-r--r--dns_wizard/Bind.pm20
1 files changed, 13 insertions, 7 deletions
diff --git a/dns_wizard/Bind.pm b/dns_wizard/Bind.pm
index 20391a84..77eed5bf 100644
--- a/dns_wizard/Bind.pm
+++ b/dns_wizard/Bind.pm
@@ -72,7 +72,7 @@ my $o = {
$in->ask_warn(N("Error"), $msg);
die 'wizcancel';
}
- ($err, $msg)
+ ($err, $msg);
},
needed_rpm => [ 'bind' ],
defaultimage => "/usr/share/mcc/themes/default/dns_server-mdk.png",
@@ -142,7 +142,9 @@ $o->{pages} = {
if (!is_ip($o->{var}{CLIENTIP})) {
#$in->ask_warn(N("Error"), N("This is not a valid IP address."));
return 1;
- } else { return 0; }
+ } else {
+ return 0;
+ }
}
},
no_back => 1,
@@ -166,7 +168,9 @@ $o->{pages} = {
if (!is_ip($o->{var}{IPMASTER})) {
#$in->ask_warn(N("Error"), N("This is not a valid IP address."));
return 1;
- } else { return 0; }
+ } else {
+ return 0;
+ }
}
},
no_back => 1,
@@ -187,7 +191,9 @@ $o->{pages} = {
if (!is_ip($o->{var}{IPOFFORWARDER})) {
#$in->ask_warn(N("Error"), N("This is not a valid IP address for your forwarder."));
return 1;
- } else { return 0; }
+ } else {
+ return 0;
+ }
}
},
no_back => 1,
@@ -818,9 +824,9 @@ sub end_it {
copy_good();
# start or restart the service
if (services::is_service_running('named')) {
- services::restart('named')
+ services::restart('named');
} else {
- services::start('named')
+ services::start('named');
}
}
@@ -887,7 +893,7 @@ sub do_it_add {
}
increment_serial($iprev);
system("service named reload");
- return 'endadd'
+ return 'endadd';
}
sub do_it_remove {