Re: [PATCH] Only initialize escrow packet code if there's devices that need it (#527668).

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

 



>> diff --git a/storage/__init__.py b/storage/__init__.py
>> index 0f71d3c..54fec41 100644
>> --- a/storage/__init__.py
>> +++ b/storage/__init__.py
>> @@ -171,6 +171,12 @@ def storageComplete(anaconda):
>>           return DISPATCH_BACK
>>
>>   def writeEscrowPackets(anaconda):
>> +    escrowDevices = map(lambda d: d.format.type == "luks" and not d.format.escrow_cert,
>> +                        anaconda.id.storage.devices)
>> +
>
>
> I believe that the not in "and not d.format.escrow_cert" should not be there.

Ah you're correct.  Too many negatives in the original code, and too
early in the morning...

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux