Merge pull request #201 from coreemu/bugfix/handle-node-privatedir-exceptions-gracefully

log warning when node.privatedir() raises an exception
This commit is contained in:
bharnden 2018-10-10 15:26:47 -07:00 committed by GitHub
commit e43d42f16b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -466,7 +466,11 @@ class CoreServices(object):
# create service directories
for directory in service.dirs:
node.privatedir(directory)
try:
node.privatedir(directory)
except (CoreCommandError, ValueError) as e:
logger.warn("error mounting private dir '%s' for service '%s': %s",
directory, service.name, e)
# create service files
self.create_service_files(node, service)