Skip to content

Commit bac9b74

Browse files
committed
fix close other utils
1 parent 4ccb312 commit bac9b74

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

images/utils/launcher/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def handle_command(self, cmd: str) -> None:
180180
xud.cli(cmd)
181181

182182
def close_other_utils(self):
183-
CloseOtherUtilsAction(self.config.network, None).execute()
183+
CloseOtherUtilsAction(self.config.network).execute()
184184

185185
def pre_shell(self):
186186
print("\n🏃 Warming up...\n")

images/utils/launcher/close_other_utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
from typing import List
44
from subprocess import check_output
55

6+
from launcher.utils import yes_or_no
7+
68

79
class Action:
8-
def __init__(self, network, shell):
10+
def __init__(self, network):
911
self.network = network
10-
self.shell = shell
1112
self.client = docker.from_env()
1213

1314
def get_utils_containers(self):
@@ -45,7 +46,7 @@ def execute(self):
4546
if n == 0:
4647
return
4748

48-
reply = self.shell.yes_or_no("Found {} existing xud ctl sessions. Do you want to close these?".format(n))
49+
reply = yes_or_no("Found {} existing xud ctl sessions. Do you want to close these?".format(n))
4950
if reply == "yes":
5051
for c in result:
5152
if c.status == "running":

0 commit comments

Comments
 (0)