2692290776
currently SDK always returns Response.text for secret payload, which is problematic for pure binary secrets, as the value returned is decoded as whatever encoding `chardet` lib has detected on this random binary data. This makes SDK basically unusable for retreving and using binary secrets, as one can not make any educated guess using only sdk-provided data on what encoding to use to get the payload as raw bytes. Instead, do what barbicanclient does, and return raw bytes (Response.content) for everything but content type "text/plain", for which decode those bytes to UTF-8. This will also make it easier to transition from barbicanclient to openstacksdk if needed. Change-Id: I0e5ac1288c0d0423fa3a7a4e63173675b78aae79 |
||
---|---|---|
.. | ||
v1 | ||
__init__.py |