Skip to content

Commit

Permalink
private key fix (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
alberts authored Aug 29, 2016
1 parent 96007ce commit 481520b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions common.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

import base64
import json
import jwt
import logging
Expand Down Expand Up @@ -54,8 +53,7 @@ class DCOSAuth(AuthBase):
def __init__(self, credentials, ca_cert):
creds = json.loads(credentials)
self.uid = creds['uid']
private_key = creds['private_key']
self.private_key = private_key.decode('ascii')
self.private_key = creds['private_key']
self.login_endpoint = creds['login_endpoint']
self.verify = False
if ca_cert:
Expand Down

0 comments on commit 481520b

Please sign in to comment.