block/bridge: correct handling of hashed fingerprints
This commit is contained in:
parent
434460dfc0
commit
268445e0f0
2 changed files with 3 additions and 2 deletions
|
@ -14,6 +14,7 @@ class BlockBridgeGitlabAutomation(BlockBridgeReachabilityAutomation):
|
|||
frequency = 30
|
||||
|
||||
def fetch(self) -> None:
|
||||
self._lines = list()
|
||||
credentials = {"private_token": current_app.config['GITLAB_TOKEN']}
|
||||
if "GITLAB_URL" in current_app.config:
|
||||
credentials['url'] = current_app.config['GITLAB_URL']
|
||||
|
@ -25,4 +26,4 @@ class BlockBridgeGitlabAutomation(BlockBridgeReachabilityAutomation):
|
|||
ref=current_app.config["GITLAB_BRIDGE_BRANCH"]
|
||||
)
|
||||
# Decode the base64 first, then decode the UTF-8 string
|
||||
self._lines = contents.decode().decode('utf-8').splitlines()
|
||||
self._lines.extend(contents.decode().decode('utf-8').splitlines())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue