summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSinisa Vujic <svujic@gmx.net>2009-10-18 16:41:25 +0200
committerDevan Goodwin <dgoodwin@rm-rf.ca>2009-10-20 23:29:30 -0300
commit65bf5c1fa3bfcaf55854d1c21b7d148bf2ea7e36 (patch)
treea7e5473a4ea84d1733a76f3be7df6cc222c15a1d
parentb9c5aa9106a5ca08d3dbba563a4ce3c844c55721 (diff)
downloadcobbler-65bf5c1fa3bfcaf55854d1c21b7d148bf2ea7e36.tar.gz
cobbler-65bf5c1fa3bfcaf55854d1c21b7d148bf2ea7e36.tar.xz
cobbler-65bf5c1fa3bfcaf55854d1c21b7d148bf2ea7e36.zip
small typo-type fix
-rw-r--r--cobbler/modules/sync_post_restart_services.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cobbler/modules/sync_post_restart_services.py b/cobbler/modules/sync_post_restart_services.py
index c26b45ca..45d39396 100644
--- a/cobbler/modules/sync_post_restart_services.py
+++ b/cobbler/modules/sync_post_restart_services.py
@@ -36,14 +36,14 @@ def run(api,args,logger):
rc = 0
if manage_dhcp != "0":
if which_dhcp_module == "manage_isc":
- if restart_dhcp:
+ if restart_dhcp != "0":
rc = utils.subprocess_call(logger, "dhcpd -t -q", shell=True)
if rc != 0:
logger.error("dhcpd -t failed")
return 1
rc = utils.subprocess_call(logger,"/etc/rc.d/init.d/dhcpd restart", shell=True)
elif which_dhcp_module == "manage_dnsmasq":
- if restart_dhcp:
+ if restart_dhcp != "0":
rc = utils.subprocess_call(logger, "/etc/rc.d/init.d/dnsmasq restart")
has_restarted_dnsmasq = True
else: