Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit 2599760

Browse files
Using Python 2 string formatting
As part of #33, a Python 3 only string formatting mechanism was introduced (https://realpython.com/python-f-strings/) but the CFN template is still using python2.7 as runtime for the lambdas hence a SyntaxError is happening
1 parent c9a09bb commit 2599760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/source/ZipDl/lambda_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def lambda_handler(event, context):
9595
archive_root = event['body-json']['project']['http_url'].strip('.git')
9696
project_id = event['body-json']['project_id']
9797
branch = event['body-json']['ref'].replace('refs/heads/', '')
98-
archive_url = f"https://gitlab.com/api/v4/projects/{project_id}/repository/archive.zip"
98+
archive_url = "https://gitlab.com/api/v4/projects/{}/repository/archive.zip".format(project_id)
9999
params = {'private_token': OAUTH_token, 'sha': branch}
100100

101101
owner = event['body-json']['project']['namespace']

0 commit comments

Comments
 (0)