Ignore TripleDES python-cryptography import warnings

TripleDES will be deprecated in python-cryptography 48.0.0. We
have code that uses it if it is available and otherwise ignores
it.

Because this gets imports in constants.py this warning is promiment
pretty much everywhere. So let's ignore it since we already handle
the issue.

Related: https://pagure.io/freeipa/issue/9641

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Rob Crittenden 2024-08-01 09:25:45 -04:00 committed by Florence Blanc-Renaud
parent 5cc7941f30
commit d0684a7ecf

View File

@ -25,6 +25,14 @@ All constants centralised in one file.
import os
import string
import uuid
import warnings
warnings.filterwarnings(
"ignore",
"TripleDES has been moved to "
"cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and "
"will be removed from this module in 48.0.0",
category=UserWarning)
from ipaplatform.constants import constants as _constants
from ipapython.dn import DN