daemon: fixed issue setting default config services if legacy services were specifically provided
This commit is contained in:
parent
5ffc3e2aa4
commit
208c746b67
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue