@@ -1829,17 +1829,18 @@ def list_host_managers(ip: str, emulation: str, ip_first_octet: int) -> None:
1829
1829
host_manager_info = ClusterController .get_host_managers_info (
1830
1830
ip = ip , port = constants .GRPC_SERVERS .CLUSTER_MANAGER_PORT , emulation = emulation ,
1831
1831
ip_first_octet = ip_first_octet )
1832
- host_managers = host_manager_info .hostManagersStatuses
1832
+ host_managers_running = host_manager_info .hostManagersRunning
1833
+ host_managers_ips = host_manager_info .ips
1833
1834
1834
1835
click .secho ('+' + '-' * 50 + '+' , fg = 'white' )
1835
1836
click .secho (f'|{ "Host IP" :^30} |{ "Running Status" :^19} |' , fg = 'white' )
1836
1837
click .secho ('+' + '-' * 50 + '+' , fg = 'white' )
1837
- for hosts in host_managers :
1838
- status = "Running" if hosts . monitor_running else "Stopped"
1839
- status_color = 'green' if hosts . monitor_running else 'red'
1838
+ for i in range ( len ( host_managers_ips )) :
1839
+ status = "Running" if host_managers_running [ i ] else "Stopped"
1840
+ status_color = 'green' if host_managers_running [ i ] else 'red'
1840
1841
1841
1842
click .secho ('|' , nl = False , fg = 'white' )
1842
- click .secho (f'{ hosts . ip :<30} ' , nl = False , fg = 'white' )
1843
+ click .secho (f'{ host_managers_ips [ i ] :<30} ' , nl = False , fg = 'white' )
1843
1844
click .secho ('|' , nl = False , fg = 'white' )
1844
1845
click .secho (f'{ status :<19} ' , nl = False , fg = status_color )
1845
1846
click .secho ('|' , fg = 'white' )
0 commit comments