Merge branch 'develop' into coretk-enhance/disable-editing-during-runtime
This commit is contained in:
commit
41bb951531
2 changed files with 3 additions and 3 deletions
|
@ -377,7 +377,7 @@ def service_configuration(session: Session, config: core_pb2.ServiceConfig) -> N
|
|||
session.services.set_service(config.node_id, config.service)
|
||||
service = session.services.get_service(config.node_id, config.service)
|
||||
if config.files:
|
||||
service.files = tuple(config.files)
|
||||
service.configs = tuple(config.files)
|
||||
if config.directories:
|
||||
service.directories = tuple(config.directories)
|
||||
if config.startup:
|
||||
|
|
|
@ -22,8 +22,8 @@ class BackgroundTask:
|
|||
result = self.task(*self.args)
|
||||
logging.info("task completed")
|
||||
# if start session fails, a response with Result: False and a list of exceptions is returned
|
||||
if hasattr(result, "result") and not result.result:
|
||||
if hasattr(result, "exceptions") and len(result.exceptions) > 0:
|
||||
if not getattr(result, "result", True):
|
||||
if len(getattr(result, "exceptions", [])) > 0:
|
||||
self.master.after(
|
||||
0,
|
||||
show_grpc_response_exceptions,
|
||||
|
|
Loading…
Reference in a new issue