murano-agent/muranoagent
Andy Botting 3c41b4f1b9 Fix base64 usage for Python 3
Python 3 now handles str and bytes differently to Python 2, so when
using b64encode/decode, the input and output must specifically by
bytes.

This commit adds some base64 helpers to coerce the input to become
bytes if the input is a str and decodes the output back to str after
the encode or decode.

It also adds a test case to replicate the issue and cover the new
functions.

Change-Id: I8f64da03c7cfc76e620cb3b98201f6287b752bb3
2020-10-08 18:50:22 +11:00
..
cmd Monkey patch original current_thread _active 2020-05-05 15:41:18 -04:00
common Murano-agent side implementation of message signing 2018-01-03 02:14:26 -08:00
executors Remove six usage 2020-04-16 04:34:44 -07:00
tests Fix base64 usage for Python 3 2020-10-08 18:50:22 +11:00
__init__.py Extract main python client to the top 2014-05-29 20:02:50 +04:00
app.py Update hacking for Python3 2020-03-30 08:24:41 +02:00
bunch.py Drop bunch dependency 2015-11-27 20:23:31 +03:00
exceptions.py Increment max FormatVersion 2015-04-20 17:37:24 +03:00
execution_plan_queue.py Fix base64 usage for Python 3 2020-10-08 18:50:22 +11:00
execution_plan_runner.py Remove six usage 2020-04-16 04:34:44 -07:00
execution_result.py Remove six usage 2020-04-16 04:34:44 -07:00
files_manager.py Remove six usage 2020-04-16 04:34:44 -07:00
opts.py Fix: config generation 2018-01-19 14:06:51 +05:30
script_runner.py Remove hardcoded destinations for puppet/chef processing engine 2015-11-19 13:39:14 +00:00
util.py Fix base64 usage for Python 3 2020-10-08 18:50:22 +11:00
validation.py Remove six usage 2020-04-16 04:34:44 -07:00
version.py Fix murano agent component name 2014-09-24 15:08:52 +04:00
win32.py Enable H301, H302, H304, H306, H231, H233 2014-08-29 13:32:56 +00:00