Skip to content

Commit

Permalink
Merge pull request #420 from izapolsk/fix_str
Browse files Browse the repository at this point in the history
[RFR] fixing str->bytes in ec2 docker registry data
  • Loading branch information
mshriver authored Oct 17, 2019
2 parents 63a8f93 + 1187ab6 commit 4b0c4c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wrapanapi/systems/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,8 @@ def get_registry_data(self):

try:
first_registry = data['authorizationData'][0]
username, password = base64.b64decode(first_registry['authorizationToken']).split(':')
encoded_data = base64.b64decode(first_registry['authorizationToken'].encode('utf-8'))
username, password = encoded_data.decode('utf-8').split(':')
return {'username': username,
'password': password,
'registry': first_registry['proxyEndpoint']}
Expand Down

0 comments on commit 4b0c4c2

Please sign in to comment.