Skip to content

Commit

Permalink
Add lsblk command
Browse files Browse the repository at this point in the history
Signed-off-by: Bryan Gurney <[email protected]>
  • Loading branch information
bgurney-rh committed Aug 7, 2023
1 parent 8f51935 commit ea5f34b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stratis_cli/_actions/_report_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"""

# isort: STDLIB
import subprocess
from abc import ABC, abstractmethod

from .._errors import StratisCliResourceNotFoundError
Expand Down Expand Up @@ -113,6 +114,7 @@ def report_pool(self):
# replace the lines below with the correct call to lsblk
for modev in modevs:
print(modev.Devnode())
subprocess.run(["lsblk", "-i", modev.Devnode()], check=True)


class Stopped(Report): # pylint: disable=too-few-public-methods
Expand Down Expand Up @@ -156,3 +158,4 @@ def selection_func(_uuid, info):
# Substitute lsblk call here
for dev in stopped_pool["devs"]:
print(dev)
subprocess.run(["lsblk", "-i", str(dev)], check=True)

0 comments on commit ea5f34b

Please sign in to comment.