Skip to content

Commit

Permalink
pass requester base URL to integration (#2420)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluek1te committed Feb 16, 2023
1 parent c7e3ae9 commit 34fa05c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions github/Requester.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ def __init__(

self.__installation_authorization = None
self.__app_auth = app_auth
self.__base_url = base_url

self.__auth_lock = RLock()

Expand All @@ -333,7 +334,6 @@ def __init__(
else:
self.__authorizationHeader = None

self.__base_url = base_url
o = urllib.parse.urlparse(base_url)
self.__hostname = o.hostname
self.__port = o.port
Expand Down Expand Up @@ -375,7 +375,9 @@ def _must_refresh_token(self) -> bool:
def _get_installation_authorization(self):
assert self.__app_auth is not None
integration = GithubIntegration.GithubIntegration(
self.__app_auth.app_id, self.__app_auth.private_key
self.__app_auth.app_id,
self.__app_auth.private_key,
base_url=self.__base_url,
)
return integration.get_access_token(
self.__app_auth.installation_id,
Expand Down

0 comments on commit 34fa05c

Please sign in to comment.