[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH 1/3] Fix DeviceTree cleanup w/ inactive luks devs in cmdline mode.



> diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
> index 214f577..a3ddde2 100644
> --- a/pyanaconda/storage/devicetree.py
> +++ b/pyanaconda/storage/devicetree.py
> @@ -1074,22 +1074,18 @@ class DeviceTree(object):
>              passphrase = self.__luksDevs.get(device.format.uuid)
>              if passphrase:
>                  device.format.passphrase = passphrase
> +            elif self._cleanup:
> +                # if we're only building the devicetree so that we can
> +                # tear down all of the devices we don't need a passphrase
> +                if device.format.status and self._cleanup:

Just a nit - you've already checked self._cleanup above, you don't need
to do so again here.

- Chris


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]