Skip to content

Commit

Permalink
Merge pull request #2409 from sgilbride/install-agent-fix
Browse files Browse the repository at this point in the history
Fixed issue with encoding for install-agent functionality in VC
  • Loading branch information
craig8 authored Jul 22, 2020
2 parents 92bf694 + 70b1331 commit b9714d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions services/core/VolttronCentralPlatform/vcplatform/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b9714d2

Please sign in to comment.