X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-starlingx%2Fmeta-stx-cloud%2Frecipes-devtools%2Fpython%2Ffiles%2Fpython-ansible%2Fpython-ansible-crypto.py-allow-the-constraint-value-to-be-lower-cas.patch;fp=meta-starlingx%2Fmeta-stx-cloud%2Frecipes-devtools%2Fpython%2Ffiles%2Fpython-ansible%2Fpython-ansible-crypto.py-allow-the-constraint-value-to-be-lower-cas.patch;h=0000000000000000000000000000000000000000;hb=6fc6934434f70595536a387ece31bc30141cafb5;hp=1e37ad22891a4aac95e56112016dba7004c91bb9;hpb=eb1e26510491ba49de693ab3b0498edcb06be6c5;p=pti%2Frtp.git diff --git a/meta-starlingx/meta-stx-cloud/recipes-devtools/python/files/python-ansible/python-ansible-crypto.py-allow-the-constraint-value-to-be-lower-cas.patch b/meta-starlingx/meta-stx-cloud/recipes-devtools/python/files/python-ansible/python-ansible-crypto.py-allow-the-constraint-value-to-be-lower-cas.patch deleted file mode 100644 index 1e37ad2..0000000 --- a/meta-starlingx/meta-stx-cloud/recipes-devtools/python/files/python-ansible/python-ansible-crypto.py-allow-the-constraint-value-to-be-lower-cas.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 1efb4cc41494201f6773ce2e92a562c96708dcb7 Mon Sep 17 00:00:00 2001 -From: Jackie Huang -Date: Wed, 26 May 2021 14:17:07 +0800 -Subject: [PATCH] crypto.py: allow the constraint value to be lower case - -Upstream-Status: Inappropriate [poky-stx specific] - -Signed-off-by: Jackie Huang ---- - lib/ansible/module_utils/crypto.py | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/lib/ansible/module_utils/crypto.py b/lib/ansible/module_utils/crypto.py -index 9b579a8..550ec26 100644 ---- a/lib/ansible/module_utils/crypto.py -+++ b/lib/ansible/module_utils/crypto.py -@@ -1813,9 +1813,9 @@ def cryptography_get_basic_constraints(constraints): - if constraints: - for constraint in constraints: - if constraint.startswith('CA:'): -- if constraint == 'CA:TRUE': -+ if constraint == 'CA:TRUE' or constraint == 'CA:true': - ca = True -- elif constraint == 'CA:FALSE': -+ elif constraint == 'CA:FALSE' or constraint == 'CA:false': - ca = False - else: - raise OpenSSLObjectError('Unknown basic constraint value "{0}" for CA'.format(constraint[3:])) --- -2.7.4 -