Skip to content

Commit

Permalink
Fix test for encrypted pool in _update_from_device.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwlehman committed Aug 5, 2020
1 parent 05d01ef commit 5b36c13
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 @@ -824,7 +824,7 @@ def _update_from_device(self, param_name):
""" Return True if param_name's value was retrieved from a looked-up device. """
# We wouldn't have the pool device if the member devices weren't unlocked, so we do not
# have to consider the case where the devices are unlocked like we do for volumes.
encrypted = all("luks" in d.type for d in self._device.parents)
encrypted = self._device.parents and all("luks" in d.type for d in self._device.parents)
raid = len(self._device.parents) == 1 and hasattr(self._device.parents[0].raw_device, 'level')
log.debug("BlivetPool._update_from_device: %s", self._device)

Expand Down

0 comments on commit 5b36c13

Please sign in to comment.