mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-23 20:44:00 -07:00
* fix 'APIC Error 403: padding check failed' in python3 With python2 the APIC-Request-Signature is filled in correctly APIC-Request-Signature=aAvxASu... But with python3 the string format method seems to add the encoding to the output, causing a padding error: APIC-Request-Signature=b'lFmHWvwW4dr... Reproduce: # -*- coding: utf-8 -*- import base64 a = base64.b64encode(b'\u0001') b = '%s' % a print(b) ======= python --version; python test.py Python 2.7.16 :: Anaconda, Inc. XHUwMDAx Python 3.6.3 :: Anaconda, Inc. b'XHUwMDAx' * Ensure we use native strings |
||
|---|---|---|
| .. | ||
| cli | ||
| compat | ||
| config | ||
| errors | ||
| executor | ||
| galaxy | ||
| inventory | ||
| module_utils | ||
| modules | ||
| parsing | ||
| playbook | ||
| plugins | ||
| template | ||
| utils | ||
| vars | ||
| __init__.py | ||
| constants.py | ||
| context.py | ||
| release.py | ||