Skip to content

Commit

Permalink
Introduce isleaf to deviceData
Browse files Browse the repository at this point in the history
Add the isleaf attribute to the deviceData attribute to make it clear in the device tree when it is a leaf node in the device tree.
  • Loading branch information
adamkankovsky committed Oct 24, 2024
1 parent 7748f0c commit 79c4cf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyanaconda/modules/storage/devicetree/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def _set_device_data(self, device, data):

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

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

0 comments on commit 79c4cf3

Please sign in to comment.