Skip to content

Commit

Permalink
Flake8 failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik Haldimann committed Aug 23, 2017
1 parent 55c031b commit d22c8a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions descarteslabs/auth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def __init__(self, domain="https://iam.descarteslabs.com",

@classmethod
def from_environment_or_token_json(cls, domain="https://iam.descarteslabs.com",
scope=None, leeway=500, token_info_path=DEFAULT_TOKEN_INFO_PATH):
scope=None, leeway=500,
token_info_path=DEFAULT_TOKEN_INFO_PATH):
"""
Creates an Auth object from environment variables CLIENT_ID, CLIENT_SECRET,
JWT_TOKEN if they are set, or else from a JSON file at the given path.
Expand All @@ -92,7 +93,7 @@ def from_environment_or_token_json(cls, domain="https://iam.descarteslabs.com",
jwt_token = os.environ.get('JWT_TOKEN', token_info.get('jwt_token', None))

return cls(domain=domain, scope=scope, leeway=leeway, token_info_path=token_info_path,
client_id=client_id, client_secret=client_secret, jwt_token=jwt_token)
client_id=client_id, client_secret=client_secret, jwt_token=jwt_token)

@property
def token(self):
Expand Down

0 comments on commit d22c8a2

Please sign in to comment.