daemon: fixed issue setting default config services if legacy services were specifically provided

This commit is contained in:
Blake Harnden 2021-05-10 12:39:20 -07:00
parent 5ffc3e2aa4
commit 208c746b67

View file

@ -555,9 +555,9 @@ class Session:
# add config services # add config services
config_services = options.config_services config_services = options.config_services
if not options.legacy and not config_services: if not options.legacy and not config_services and not node.services:
config_services = self.services.default_services.get(node.type, []) config_services = self.services.default_services.get(node.type, [])
logger.info("setting node config services: %s", options.config_services) logger.info("setting node config services: %s", config_services)
for name in config_services: for name in config_services:
service_class = self.service_manager.get_service(name) service_class = self.service_manager.get_service(name)
node.add_config_service(service_class) node.add_config_service(service_class)