updates to allow setting 0 services for a node, but old gui does not send data in a way that can be compatible
This commit is contained in:
parent
7e7bf8c7b7
commit
9bd13dce1e
2 changed files with 2 additions and 3 deletions
|
@ -74,7 +74,7 @@ class NodeOptions:
|
|||
self.canvas = None
|
||||
self.icon = None
|
||||
self.opaque = None
|
||||
self.services = []
|
||||
self.services = None
|
||||
self.config_services = []
|
||||
self.x = None
|
||||
self.y = None
|
||||
|
|
|
@ -404,12 +404,11 @@ class CoreServices:
|
|||
:param services: names of services to add to node
|
||||
:return: nothing
|
||||
"""
|
||||
if not services:
|
||||
if services is None:
|
||||
logging.info(
|
||||
"using default services for node(%s) type(%s)", node.name, node_type
|
||||
)
|
||||
services = self.default_services.get(node_type, [])
|
||||
|
||||
logging.info("setting services for node(%s): %s", node.name, services)
|
||||
for service_name in services:
|
||||
service = self.get_service(node.id, service_name, default_service=True)
|
||||
|
|
Loading…
Reference in a new issue