removed service load methids, since they are no longer used, added way for custom service load code to facilitate the unique docker service case

This commit is contained in:
Blake J. Harnden 2017-08-07 16:40:39 -07:00
parent 73eea80f51
commit f3863ead73
11 changed files with 26 additions and 117 deletions

View file

@ -138,7 +138,9 @@ class ServiceManager(object):
module = importlib.import_module(import_statement)
members = inspect.getmembers(module, lambda x: _is_service(module, x))
for member in members:
cls.add(member[1])
clazz = member[1]
clazz.on_load()
cls.add(clazz)
class CoreServices(ConfigurableManager):
@ -943,6 +945,10 @@ class CoreService(object):
"""
self._custom = True
@classmethod
def on_load(cls):
pass
@classmethod
def getconfigfilenames(cls, nodenum, services):
"""