From 66fe1de8368ba7e754fa6dad798bf351f3c3bf93 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 19 Jan 2018 19:16:57 +0200 Subject: Change: builds are now numbered foo/123, as are logs --- ick2/projectapi.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ick2/projectapi.py') diff --git a/ick2/projectapi.py b/ick2/projectapi.py index 6952d6d..6b6c4fc 100644 --- a/ick2/projectapi.py +++ b/ick2/projectapi.py @@ -22,6 +22,12 @@ class ProjectAPI(ick2.ResourceApiBase): super().__init__('projects', state) self._pi = ick2.PipelineInstances(self.get_state()) + def mangle_resource(self, resource): + new = dict(resource) + if 'next_build_id' not in new: + new['next_build_id'] = None + return new + def get_resource_name(self, resource): return resource['project'] -- cgit v1.2.1