Skip to content

Commit

Permalink
lsblk: fix order of install for FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
sharsonia committed Feb 15, 2023
1 parent 85ff552 commit f38ac53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lisa/tools/lsblk.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ def can_install(self) -> bool:
return True

def _install(self) -> bool:
if isinstance(self.node.os, Posix):
self.node.os.install_packages("util-linux")
elif isinstance(self.node.os, FreeBSD):
if isinstance(self.node.os, FreeBSD):
self.node.os.install_packages("lsblk")
elif isinstance(self.node.os, Posix):
self.node.os.install_packages("util-linux")
else:
raise LisaException(
f"tool {self.command} can't be installed in distro {self.node.os.name}."
Expand Down

0 comments on commit f38ac53

Please sign in to comment.