Merge pull request #41 from coreos-inc/smallfixes
Fix case where the auth token was not written properly for BitBucket
This commit is contained in:
commit
15464f1169
1 changed files with 5 additions and 1 deletions
|
@ -244,7 +244,11 @@ class BitbucketBuildTrigger(BuildTriggerHandler):
|
||||||
def _get_authorized_client(self):
|
def _get_authorized_client(self):
|
||||||
base_client = self._get_client()
|
base_client = self._get_client()
|
||||||
auth_token = self.auth_token or 'invalid:invalid'
|
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)
|
return base_client.get_authorized_client(access_token, access_token_secret)
|
||||||
|
|
||||||
def _get_repository_client(self):
|
def _get_repository_client(self):
|
||||||
|
|
Reference in a new issue