fixed refactoring issues in mobility.py, fixed issue with parsing config files in a tuple string format

This commit is contained in:
Blake J. Harnden 2017-08-02 14:07:56 -07:00
parent 4d21314798
commit 05ce19b0c0
4 changed files with 24 additions and 15 deletions

View file

@ -350,14 +350,17 @@ class CoreServices(ConfigurableManager):
:param bool use_startup_service: flag to use startup services or not
:return: nothing
"""
logger.info("starting service %s (%s)(custom)" % (service._name, service._startindex))
logger.info("starting service(%s) %s (%s)(custom)",
service, service._name, service._startindex)
for directory in service._dirs:
try:
node.privatedir(directory)
except:
logger.exception("Error making node %s dir %s", node.name, directory)
logger.exception("error making node %s dir %s", node.name, directory)
logger.info("service configurations: %s", service._configs)
for i, filename in enumerate(service._configs):
logger.info("generating service config: %s", filename)
if len(filename) == 0:
continue
cfg = self.getservicefiledata(service, filename)