File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ def copy_scenario_defaults(directory: Path):
63
63
)
64
64
65
65
66
- def _connected ():
66
+ def _connected (end = " \n " ):
67
67
tanks = get_mission ("tank" )
68
68
for tank in tanks :
69
69
# Get actual
@@ -73,11 +73,11 @@ def _connected():
73
73
if peer ["connection_type" ] == "manual" :
74
74
actual += 1
75
75
expected = int (tank .metadata .annotations ["init_peers" ])
76
- print (f"Tank { tank .metadata .name } peers expected: { expected } , actual: { actual } " )
76
+ print (f"Tank { tank .metadata .name } peers expected: { expected } , actual: { actual } " , end = end )
77
77
# Even if more edges are specified, bitcoind only allows
78
78
# 8 manual outbound connections
79
79
if min (8 , expected ) > actual :
80
- print ("Network not connected" )
80
+ print ("\n Network not connected" )
81
81
return False
82
- print ("Network connected" )
82
+ print ("Network connected " )
83
83
return True
Original file line number Diff line number Diff line change 5
5
from rich .text import Text
6
6
7
7
from .k8s import get_mission
8
+ from .network import _connected
8
9
9
10
10
11
@click .command ()
@@ -53,6 +54,7 @@ def status():
53
54
summary .append (f"\n Total Tanks: { len (tanks )} " , style = "bold cyan" )
54
55
summary .append (f" | Active Scenarios: { len (scenarios )} " , style = "bold green" )
55
56
console .print (summary )
57
+ _connected (end = "\r " )
56
58
57
59
58
60
def _get_tank_status ():
You can’t perform that action at this time.
0 commit comments