diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-04-21 16:55:22 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-04-21 17:47:48 +0300 |
commit | 115b2a48f32bca5939600a66767cce5069098bf8 (patch) | |
tree | db439a31edc50984afd0f941740e67c89af7f308 /icktool | |
parent | e9e51f252d8188821162ea859f86d6ee664978e7 (diff) | |
download | ick2-115b2a48f32bca5939600a66767cce5069098bf8.tar.gz |
Add: /status endpoint for getting status of all projects
Also change icktool to use it, for speed.
Diffstat (limited to 'icktool')
-rwxr-xr-x | icktool | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -60,6 +60,7 @@ class Icktool(cliapp.Application): _default_scopes = [ 'uapi_version_get', 'uapi_work_post', + 'uapi_status_get', 'uapi_projects_id_status_get', 'uapi_projects_id_status_put', 'uapi_blobs_id_get', @@ -282,12 +283,12 @@ class StatusCommand(Command): projects = self.api.show('/projects') builds = self.api.show('/builds') + statuses = self.api.show('/status') projects = self._sort_projects(projects) for project in projects: project_name = project['project'] - project_status = self.api.show( - '/projects/{}/status'.format(project_name)) + project_status = statuses[project_name] row = { 'project': project_name, |