fixed bug with custom service files using the same dict across instances of the class

This commit is contained in:
Blake J. Harnden 2018-07-25 09:37:59 -07:00
parent 087a0f011b
commit 9ce28da658
2 changed files with 35 additions and 17 deletions

View file

@ -761,13 +761,7 @@ class CoreService(object):
configuration is used to override their default parameters.
"""
self.custom = True
self.dirs = self.__class__.dirs
self.configs = self.__class__.configs
self.startup = self.__class__.startup
self.shutdown = self.__class__.shutdown
self.validate = self.__class__.validate
self.meta = self.__class__.meta
self.config_data = self.__class__.config_data
self.config_data = self.__class__.config_data.copy()
@classmethod
def on_load(cls):