removed grpc check for getting a node service file, it will return the default value when not currently set

This commit is contained in:
Blake Harnden 2019-12-13 11:24:35 -08:00
parent 358985d129
commit b993fadedb
2 changed files with 1 additions and 8 deletions

View file

@ -1158,13 +1158,6 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer):
logging.debug("get node service file: %s", request)
session = self.get_session(request.session_id, context)
node = self.get_node(session, request.node_id, context)
service = None
for current_service in node.services:
if current_service.name == request.service:
service = current_service
break
if not service:
context.abort(grpc.StatusCode.NOT_FOUND, "service not found")
file_data = session.services.get_service_file(
node, request.service, request.file
)

View file

@ -396,7 +396,7 @@ class CoreServices:
"""
Add services to a node.
:param core.coreobj.PyCoreNode node: node to add services to
:param core.nodes.base.CoreNode node: node to add services to
:param str node_type: node type to add services to
:param list[str] services: names of services to add to node
:return: nothing