Skip to content

Commit

Permalink
Take partition label from blivet
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkankovsky committed Sep 13, 2024
1 parent 0e141c0 commit c5482bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pyanaconda/modules/storage/devicetree/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,7 @@ def _set_device_data(self, device, data):
data.attrs["bus"] = self._get_attribute(device, "bus")
data.attrs["wwn"] = self._get_attribute(device, "wwn")
data.attrs["uuid"] = self._get_attribute(device, "uuid")

if isinstance(device, PartitionDevice):
data.attrs["partition-label"] = self._get_attribute(device.parted_partition, "name")
data.attrs["partition-label"] = self._get_attribute(device, "part_type_name")

def _set_device_data_dasd(self, device, data):
"""Set data for a DASD device."""
Expand Down

0 comments on commit c5482bf

Please sign in to comment.