pygui: adjust service configuration to not use grpc calls, data is saved and provided in start session call
This commit is contained in:
parent
4830538053
commit
3d356272f1
4 changed files with 43 additions and 66 deletions
|
@ -269,6 +269,12 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer):
|
|||
for config in request.service_configs:
|
||||
grpcutils.service_configuration(session, config)
|
||||
|
||||
# service file configs
|
||||
for config in request.service_file_configs:
|
||||
session.services.set_service_file(
|
||||
config.node_id, config.service, config.file, config.data
|
||||
)
|
||||
|
||||
# config service configs
|
||||
for config in request.config_service_configs:
|
||||
node = self.get_node(session, config.node_id, context, CoreNode)
|
||||
|
@ -278,12 +284,6 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer):
|
|||
for name, template in config.templates.items():
|
||||
service.set_template(name, template)
|
||||
|
||||
# service file configs
|
||||
for config in request.service_file_configs:
|
||||
session.services.set_service_file(
|
||||
config.node_id, config.service, config.file, config.data
|
||||
)
|
||||
|
||||
# create links
|
||||
_, exceptions = grpcutils.create_links(session, request.links)
|
||||
if exceptions:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue