Skip to content

Commit

Permalink
Flake fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aiden3c committed Jul 12, 2024
1 parent bb10b0f commit cc86cd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions truenas_installer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ def main():

with open("/etc/version") as f:
version = f.read().strip()

try:
with open("/data/.vendor") as f:
vendor = json.loads(f.read()).get("name", "TrueNAS")
except FileNotFoundError:
vendor = "TrueNAS"

dmi = parse_dmi()

installer = Installer(version, dmi, vendor)
Expand Down
3 changes: 2 additions & 1 deletion truenas_installer/installer_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ async def _install_upgrade(self):

async def _install_upgrade_internal(self):
disks = await list_disks()
vendor = self.installer.vendor

if not disks:
await dialog_msgbox("Choose Destination Media", "No drives available")
Expand All @@ -45,7 +46,7 @@ async def _install_upgrade_internal(self):
destination_disks = await dialog_checklist(
"Choose Destination Media",
(
f"Install {self.installer.vendor} to a drive. If desired, select multiple drives to provide redundancy. {self.installer.vendor} "
f"Install {vendor} to a drive. If desired, select multiple drives to provide redundancy. {vendor} "
"installation drive(s) are not available for use in storage pools. Use arrow keys to navigate "
"options. Press spacebar to select."
),
Expand Down

0 comments on commit cc86cd3

Please sign in to comment.