Files
community.general/lib/ansible/module_utils/network
lumean b24c037f62 fix 'APIC Error 403: padding check failed' in python3 (#55150)
* 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
2019-04-11 17:28:44 +02:00
..
2019-03-27 19:22:05 +05:30
2019-03-15 13:53:30 +05:30
2019-03-27 14:44:04 +01:00
2019-03-20 14:44:41 +00:00
2018-08-10 13:50:02 -07:00
2019-03-06 13:55:03 -05:00
2018-12-14 09:45:31 +05:30
2018-11-01 14:07:41 +05:30