Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:Uyuni:Snapshots:2020.05
cobbler
fix_cobbler_sync_for_dhcp_or_dns.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix_cobbler_sync_for_dhcp_or_dns.diff of Package cobbler
diff --git a/cobbler/modules/sync_post_restart_services.py b/cobbler/modules/sync_post_restart_services.py index 1e998f8ee..16e19c336 100644 --- a/cobbler/modules/sync_post_restart_services.py +++ b/cobbler/modules/sync_post_restart_services.py @@ -27,7 +27,7 @@ def run(api, args, logger): rc = 0 if manage_dhcp != "0": - if which_dhcp_module == "manage_isc": + if which_dhcp_module == "managers.isc": if restart_dhcp != "0": rc = utils.subprocess_call(logger, "dhcpd -t -q", shell=True) if rc != 0: @@ -36,7 +36,7 @@ def run(api, args, logger): dhcp_service_name = utils.dhcp_service_name(api) dhcp_restart_command = "service %s restart" % dhcp_service_name rc = utils.subprocess_call(logger, dhcp_restart_command, shell=True) - elif which_dhcp_module == "manage_dnsmasq": + elif which_dhcp_module == "managers.dnsmasq": if restart_dhcp != "0": rc = utils.subprocess_call(logger, "service dnsmasq restart") has_restarted_dnsmasq = True @@ -45,15 +45,15 @@ def run(api, args, logger): rc = 411 if manage_dns != "0" and restart_dns != "0": - if which_dns_module == "manage_bind": + if which_dns_module == "managers.bind": named_service_name = utils.named_service_name(api) dns_restart_command = "service %s restart" % named_service_name rc = utils.subprocess_call(logger, dns_restart_command, shell=True) - elif which_dns_module == "manage_dnsmasq" and not has_restarted_dnsmasq: + elif which_dns_module == "managers.dnsmasq" and not has_restarted_dnsmasq: rc = utils.subprocess_call(logger, "service dnsmasq restart", shell=True) - elif which_dns_module == "manage_dnsmasq" and has_restarted_dnsmasq: + elif which_dns_module == "managers.dnsmasq" and has_restarted_dnsmasq: rc = 0 - elif which_dns_module == "manage_ndjbdns": + elif which_dns_module == "managers.ndjbdns": # N-DJBDNS picks up configuration changes automatically and does not need to be restarted. pass else:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor