Skip to content

Commit

Permalink
Remove for loop from stopped pool lsblk
Browse files Browse the repository at this point in the history
  • Loading branch information
bgurney-rh committed Aug 10, 2023
1 parent c26b8d5 commit 2348034
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/stratis_cli/_actions/_report_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,4 @@ def selection_func(_uuid, info):
# Ignore bandit B603 errors. Input comes from D-Bus and has
# been processed.
blkdevs = [dev[dbus.String("devnode")] for dev in stopped_pool["devs"]]
for dev in stopped_pool["devs"]:
print(dev[dbus.String("devnode")])
subprocess.run(["/usr/bin/lsblk", "-i"] + blkdevs, check=True) # nosec B603
subprocess.run(["/usr/bin/lsblk", "-i"] + blkdevs, check=True) # nosec B603

0 comments on commit 2348034

Please sign in to comment.