+ logger.info("GetBootMedium - done with build.sh")
+ encoded_result = base64.b64encode(result)
+ # stupidly enough, we need to decode this as str now
+ # so that we remain compatible with former python2 PLCAPI
+ encoded_result = encoded_result.decode()
+ logger.info("GetBootMedium - done with base64 encoding -"
+ " lengths: raw={} - b64={}"
+ .format(len(result), len(encoded_result)))
+ return encoded_result