[Freeipa-devel] [PATCH] Make pkey always iterable when deleting

Jakub Hrozek jhrozek at redhat.com
Mon Dec 20 12:15:36 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When deleting multiple objects, the code tries to enforce that the
primary key is always iterable by doing:

keys = keys[:-1] + (keys[-1], )

But this doesn't work, the line only concatenates two tuples effectively
returning the original one. See the attached patch for a fix.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk0PSOgACgkQHsardTLnvCWaYwCgxLGN09ZAjApMevLaQqlSM0hZ
NnIAoLFkL2o2eBbQhDyEEJ7URz9NkFvo
=Z2cP
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-jhrozek-028-pkey-iterable.patch
Type: text/x-patch
Size: 1354 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20101220/a4172cf8/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-jhrozek-028-pkey-iterable.patch.sig
Type: application/pgp-signature
Size: 72 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20101220/a4172cf8/attachment.sig>


More information about the Freeipa-devel mailing list