Skip to content

Commit

Permalink
Fixed get_be_list
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbsd committed Feb 23, 2024
1 parent 5d3e477 commit 5a5bb12
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bectl.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,12 @@ def umount_be(BeName):

def get_be_list():
cmd_list = ['bectl', 'list']
bectl_output = Popen(
bectl_output: Popen[str] = Popen(
cmd_list,
stdout=PIPE,
close_fds=True,
universal_newlines=True,
encoding='utf-8'
)
bectl_list = list(set(bectl_output.stdout.read().splitlines()))
bectl_list.sort()
bectl_list = bectl_output.stdout.read().splitlines().pop(0)
return bectl_list

0 comments on commit 5a5bb12

Please sign in to comment.