Skip to content

Commit

Permalink
fix: Fix incorrent populate call
Browse files Browse the repository at this point in the history
`populate()` is method of DeviceTree, not Blivet.
  • Loading branch information
vojtechtrefny committed Apr 10, 2024
1 parent a71a15f commit ca4f4b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/blivet.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ def _look_up_device(self):
device.original_format._key_file = self._volume.get('encryption_key')
device.original_format.passphrase = self._volume.get('encryption_password')
if device.isleaf:
self._blivet.populate()
self._blivet.devicetree.populate()

Check warning on line 633 in library/blivet.py

View check run for this annotation

Codecov / codecov/patch

library/blivet.py#L633

Added line #L633 was not covered by tests

if not device.isleaf:
device = device.children[0]
Expand Down

0 comments on commit ca4f4b2

Please sign in to comment.