@@ -1389,10 +1389,9 @@ def start_host_managers(ip: str, emulation: str, ip_first_octet: int):
1389
1389
config = MetastoreFacade .get_config (id = 1 )
1390
1390
for node in config .cluster_config .cluster_nodes :
1391
1391
if node .ip == ip or ip == "" :
1392
- started = ClusterController .start_host_managers (ip = ip , port = constants .GRPC_SERVERS .CLUSTER_MANAGER_PORT ,
1392
+ operation_outcome = ClusterController .start_host_managers (ip = ip , port = constants .GRPC_SERVERS .CLUSTER_MANAGER_PORT ,
1393
1393
emulation = emulation , ip_first_octet = ip_first_octet )
1394
-
1395
- if started :
1394
+ if operation_outcome .outcome :
1396
1395
click .secho (f"Starting host managers on port:{ constants .GRPC_SERVERS .CLUSTER_MANAGER_PORT } " )
1397
1396
else :
1398
1397
click .secho (f"Host managers are not started:{ constants .GRPC_SERVERS .CLUSTER_MANAGER_PORT } " ,
@@ -1413,14 +1412,14 @@ def start_host_manager(ip: str, container_ip:str, emulation: str, ip_first_octet
1413
1412
config = MetastoreFacade .get_config (id = 1 )
1414
1413
for node in config .cluster_config .cluster_nodes :
1415
1414
if node .ip == ip or ip == "" :
1416
- started = ClusterController .start_host_manager (ip = ip , port = constants .GRPC_SERVERS .CLUSTER_MANAGER_PORT ,
1415
+ operation_outcome = ClusterController .start_host_manager (ip = ip , port = constants .GRPC_SERVERS .CLUSTER_MANAGER_PORT ,
1417
1416
emulation = emulation , ip_first_octet = ip_first_octet ,
1418
1417
container_ip = container_ip )
1419
- if started :
1420
- click .secho (f"Starting host with ip { container_ip } on "
1418
+ if operation_outcome . outcome :
1419
+ click .secho (f"Started host manager with ip { container_ip } on "
1421
1420
f"port:{ constants .GRPC_SERVERS .CLUSTER_MANAGER_PORT } " )
1422
1421
else :
1423
- click .secho (f"Host with ip { container_ip } is not "
1422
+ click .secho (f"Host manager with ip { container_ip } is not "
1424
1423
f"started:{ constants .GRPC_SERVERS .CLUSTER_MANAGER_PORT } " ,
1425
1424
bold = False )
1426
1425
0 commit comments