added files/directories to grpc set_node_service
This commit is contained in:
parent
71aeb98bb9
commit
ebafa228ff
6 changed files with 34 additions and 14 deletions
|
@ -625,7 +625,12 @@ class CoreClient:
|
|||
shutdowns: List[str],
|
||||
) -> core_pb2.NodeServiceData:
|
||||
response = self.client.set_node_service(
|
||||
self.session_id, node_id, service_name, startups, validations, shutdowns
|
||||
self.session_id,
|
||||
node_id,
|
||||
service_name,
|
||||
startup=startups,
|
||||
validate=validations,
|
||||
shutdown=shutdowns,
|
||||
)
|
||||
logging.info(
|
||||
"Set %s service for node(%s), Startup: %s, Validation: %s, Shutdown: %s, Result: %s",
|
||||
|
@ -713,9 +718,9 @@ class CoreClient:
|
|||
self.session_id,
|
||||
config_proto.node_id,
|
||||
config_proto.service,
|
||||
config_proto.startup,
|
||||
config_proto.validate,
|
||||
config_proto.shutdown,
|
||||
startup=config_proto.startup,
|
||||
validate=config_proto.validate,
|
||||
shutdown=config_proto.shutdown,
|
||||
)
|
||||
for config_proto in self.get_service_file_configs_proto():
|
||||
self.client.set_node_service_file(
|
||||
|
|
|
@ -426,9 +426,9 @@ class ServiceConfigDialog(Dialog):
|
|||
config = self.core.set_node_service(
|
||||
self.node_id,
|
||||
self.service_name,
|
||||
startup_commands,
|
||||
validate_commands,
|
||||
shutdown_commands,
|
||||
startups=startup_commands,
|
||||
validations=validate_commands,
|
||||
shutdowns=shutdown_commands,
|
||||
)
|
||||
if self.node_id not in self.service_configs:
|
||||
self.service_configs[self.node_id] = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue