From 70b1331f9b07b7b1b596e38afa5753d3f82a1d1e Mon Sep 17 00:00:00 2001 From: sgilbride Date: Thu, 9 Jul 2020 10:03:04 -0700 Subject: [PATCH] Fixed issue with encoding for install-agent functionality in VC --- services/core/VolttronCentralPlatform/vcplatform/agent.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/core/VolttronCentralPlatform/vcplatform/agent.py b/services/core/VolttronCentralPlatform/vcplatform/agent.py index 9c18def8ec..22526d3899 100644 --- a/services/core/VolttronCentralPlatform/vcplatform/agent.py +++ b/services/core/VolttronCentralPlatform/vcplatform/agent.py @@ -1159,8 +1159,9 @@ def _install_agent(self, fileargs): with open(path, 'wb') as fout: fout.write( base64.decodestring( - fileargs['file'].split(base64_sep)[1])) - + fileargs['file'].split(base64_sep)[1].encode('utf-8') + ) + ) uuid = self.vip.rpc.call(CONTROL, 'install_agent_local', path, vip_identity=vip_identity ).get(timeout=30)