Skip to content

Commit

Permalink
Fix google auth request import
Browse files Browse the repository at this point in the history
  • Loading branch information
Mackey22 committed Aug 2, 2017
1 parent 740f151 commit c1abdf3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hca/added_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import jsonschema
import requests
from google import auth
from google.auth.transport.requests import Request
from googleapiclient import sample_tools

from .constants import Constants
Expand Down Expand Up @@ -223,7 +224,11 @@ def _get_auth_header(cls, real_header=True):
try:
credentials, project_id = auth.default(scopes=["https://www.googleapis.com/auth/userinfo.email"])

<<<<<<< HEAD
r = auth.transport.requests.Request()
=======
r = Request()
>>>>>>> 6c842ef... Fix google auth request import
credentials.refresh(r)
r.session.close()

Expand Down

0 comments on commit c1abdf3

Please sign in to comment.