Fix case where the auth token was not written properly for BitBucket
This commit is contained in:
parent
f5dc3c2a5a
commit
374d1d7e89
1 changed files with 5 additions and 1 deletions
|
@ -244,7 +244,11 @@ class BitbucketBuildTrigger(BuildTriggerHandler):
|
|||
def _get_authorized_client(self):
|
||||
base_client = self._get_client()
|
||||
auth_token = self.auth_token or 'invalid:invalid'
|
||||
(access_token, access_token_secret) = auth_token.split(':')
|
||||
token_parts = auth_token.split(':')
|
||||
if len(token_parts) != 2:
|
||||
token_parts = ['invalid', 'invalid']
|
||||
|
||||
(access_token, access_token_secret) = token_parts
|
||||
return base_client.get_authorized_client(access_token, access_token_secret)
|
||||
|
||||
def _get_repository_client(self):
|
||||
|
|
Reference in a new issue