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 authored and mulkieran committed Dec 4, 2023
1 parent 30e9bea commit a3092a5
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 @@ -139,6 +139,4 @@ def report_pool(self):
# Ignore bandit B603 errors. Input comes from D-Bus and has
# been processed.
blkdevs = [dev.devnode for dev in stopped_pool.devs]
for dev in stopped_pool.devs:
print(dev.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 a3092a5

Please sign in to comment.