From: Tom Powell Date: Fri, 16 Nov 2018 03:27:29 +0000 (+0000) Subject: Coerce runner id to a string. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ee9e64d3028092941a999ca9e6ce208c8f30dcff;p=GitLab%2Fstricted-build%2Flineage_builder.git Coerce runner id to a string. --- diff --git a/ui/gitlab/webhooks.py b/ui/gitlab/webhooks.py index 88cc9dd..2f156c6 100644 --- a/ui/gitlab/webhooks.py +++ b/ui/gitlab/webhooks.py @@ -32,7 +32,7 @@ def process(request): build_stage = stage runner = build_stage.get("runner") if runner: - build.build_runner = Runner.get_or_create_by_id(runner.get('id')) + build.build_runner = Runner.get_or_create_by_id(str(runner.get('id'))) if not build.build_runner.runner_name: build.build_runner.runner_name = runner.get("description") date = datetime.datetime.strptime(build_stage.get("created_at"), "%Y-%m-%d %H:%M:%S UTC")