When using python3 the string is required to be bytes,
use oslo.serialization which allows us to easily to use
python2/python3.
This allows the ansible playbooks to run. There are more
instances of base64 in sysinv but they should be evaluated
seperately.
Story: 2006796
Task: 42766
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: Ie4eb21b0ad4d7a6fdb2af28aca4f7a47920d5b49
(cherry picked from commit af2a84ba48)