diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-01-19 19:16:57 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-01-19 19:16:57 +0200 |
commit | 66fe1de8368ba7e754fa6dad798bf351f3c3bf93 (patch) | |
tree | e1e410beeaa3264212f2760debfbcfeebd46c50d /ick2/projectapi.py | |
parent | 3bc16ac24091009e73d9c4b9c2fbda0cdca6cff5 (diff) | |
download | ick2-66fe1de8368ba7e754fa6dad798bf351f3c3bf93.tar.gz |
Change: builds are now numbered foo/123, as are logs
Diffstat (limited to 'ick2/projectapi.py')
-rw-r--r-- | ick2/projectapi.py | 6 |
1 files changed, 6 insertions, 0 deletions
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'] |