Coerce runner id to a string.
authorTom Powell <gitlab@tom.powell.io>
Fri, 16 Nov 2018 03:27:29 +0000 (03:27 +0000)
committerTom Powell <gitlab@tom.powell.io>
Fri, 16 Nov 2018 03:27:29 +0000 (03:27 +0000)
ui/gitlab/webhooks.py

index 88cc9dd5528cd9b5567022699d9e0a68eb556378..2f156c6effcaef36ffe2f679b766cad3b85c9ea2 100644 (file)
@@ -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")