Ensure that services are registered when modules complete setup

This commit is contained in:
James Valleroy committed 2016-12-04 13:45:31 -05:00
1 parent 5f1c72d647
commit b234d0e1b3
18 files changed
+109

No files matched your search

+4
View File
@@ -61,6 +61,10 @@ def init():
def setup(helper, old_version=None):
"""Install and configure the module."""
helper.install(managed_packages)
global service
if service is None:
service = service_module.Service(
managed_services[0], title, ports=['ntp'], is_external=False)
helper.call('post', service.notify_enabled, None, True)