Skip to content

Commit 1963720

Browse files
committed
fix linter
1 parent 310abe4 commit 1963720

File tree

1 file changed

+14
-9
lines changed
  • simulation-system/libs/csle-cli/src/csle_cli

1 file changed

+14
-9
lines changed

simulation-system/libs/csle-cli/src/csle_cli/cli.py

+14-9
Original file line numberDiff line numberDiff line change
@@ -942,10 +942,11 @@ def stop_host_manager(ip: str, container_ip: str, emulation: str, ip_first_octet
942942
for node in config.cluster_config.cluster_nodes:
943943
if node.ip == ip or ip == "":
944944
stopped = ClusterController.stop_host_manager(ip=ip, port=constants.GRPC_SERVERS.CLUSTER_MANAGER_PORT,
945-
emulation=emulation, ip_first_octet=ip_first_octet,
946-
container_ip=container_ip)
945+
emulation=emulation, ip_first_octet=ip_first_octet,
946+
container_ip=container_ip)
947947
if stopped:
948-
click.secho(f"Stopping host with ip {container_ip} on port:{constants.GRPC_SERVERS.CLUSTER_MANAGER_PORT}")
948+
click.secho(
949+
f"Stopping host with ip {container_ip} on port:{constants.GRPC_SERVERS.CLUSTER_MANAGER_PORT}")
949950
else:
950951
click.secho(f"Host with ip {container_ip} is not "
951952
f"stopped:{constants.GRPC_SERVERS.CLUSTER_MANAGER_PORT}",
@@ -1389,15 +1390,18 @@ def start_host_managers(ip: str, emulation: str, ip_first_octet: int):
13891390
config = MetastoreFacade.get_config(id=1)
13901391
for node in config.cluster_config.cluster_nodes:
13911392
if node.ip == ip or ip == "":
1392-
operation_outcome = ClusterController.start_host_managers(ip=ip, port=constants.GRPC_SERVERS.CLUSTER_MANAGER_PORT,
1393-
emulation=emulation, ip_first_octet=ip_first_octet)
1393+
operation_outcome = ClusterController.start_host_managers(ip=ip,
1394+
port=constants.GRPC_SERVERS.CLUSTER_MANAGER_PORT,
1395+
emulation=emulation,
1396+
ip_first_octet=ip_first_octet)
13941397
if operation_outcome.outcome:
13951398
click.secho(f"Starting host managers on port:{constants.GRPC_SERVERS.CLUSTER_MANAGER_PORT}")
13961399
else:
13971400
click.secho(f"Host managers are not started:{constants.GRPC_SERVERS.CLUSTER_MANAGER_PORT}",
13981401
bold=False)
13991402

1400-
def start_host_manager(ip: str, container_ip:str, emulation: str, ip_first_octet: int):
1403+
1404+
def start_host_manager(ip: str, container_ip: str, emulation: str, ip_first_octet: int):
14011405
"""
14021406
Utility function for starting host manager
14031407
@@ -1412,9 +1416,10 @@ def start_host_manager(ip: str, container_ip:str, emulation: str, ip_first_octet
14121416
config = MetastoreFacade.get_config(id=1)
14131417
for node in config.cluster_config.cluster_nodes:
14141418
if node.ip == ip or ip == "":
1415-
operation_outcome = ClusterController.start_host_manager(ip=ip, port=constants.GRPC_SERVERS.CLUSTER_MANAGER_PORT,
1416-
emulation=emulation, ip_first_octet=ip_first_octet,
1417-
container_ip=container_ip)
1419+
operation_outcome = ClusterController.start_host_manager(ip=ip,
1420+
port=constants.GRPC_SERVERS.CLUSTER_MANAGER_PORT,
1421+
emulation=emulation, ip_first_octet=ip_first_octet,
1422+
container_ip=container_ip)
14181423
if operation_outcome.outcome:
14191424
click.secho(f"Started host manager with ip {container_ip} on "
14201425
f"port:{constants.GRPC_SERVERS.CLUSTER_MANAGER_PORT}")

0 commit comments

Comments
 (0)