Skip to content

Commit

Permalink
pyanaconda: storage: workaround for Virtio Block Device being display…
Browse files Browse the repository at this point in the history
…ed as 0x1af4
  • Loading branch information
KKoukiou committed Nov 1, 2024
1 parent f6f443a commit 4785219
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyanaconda/modules/storage/devicetree/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ def _set_device_data(self, device, data):
# FIXME: We should generate the description from the device data.
data.description = getattr(device, "description", "")

# Workaround for Virtio Block Device being displayed as 0x1af4
# https://github.com/storaged-project/blivet/pull/174
if data.description == "0x1af4":
data.description = _("Virtio Block Device")

data.attrs["serial"] = self._get_attribute(device, "serial")
data.attrs["vendor"] = self._get_attribute(device, "vendor")
data.attrs["model"] = self._get_attribute(device, "model")
Expand Down

0 comments on commit 4785219

Please sign in to comment.