diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-01-18 15:14:28 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-01-18 15:18:03 +0200 |
commit | 708a497c369601909bc57768bc929fdccc235406 (patch) | |
tree | e6f5a025a280d74d13b28452dfa6e6dc3b8e2953 /icktool | |
parent | b7f0f336a6300f805db64139a507996df182d765 (diff) | |
download | ick2-708a497c369601909bc57768bc929fdccc235406.tar.gz |
Change: rename 'name' field on pipelines to 'pipeline'
For consistency.
Diffstat (limited to 'icktool')
-rwxr-xr-x | icktool | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -169,7 +169,7 @@ class Icktool(cliapp.Application): projects = self._new_rc('/projects', 'project') self._make_it_so(projects, obj.get('projects', [])) - pipelines = self._new_rc('/pipelines', 'name') + pipelines = self._new_rc('/pipelines', 'pipeline') self._make_it_so(pipelines, obj.get('pipelines', [])) def _make_it_so(self, rc, objs): @@ -203,16 +203,16 @@ class Icktool(cliapp.Application): rc.delete(name) def cmd_list_pipelines(self, args): - rc = self._new_rc('/pipelines', 'name') + rc = self._new_rc('/pipelines', 'pipeline') self._prettyson(rc.list()) def cmd_create_pipeline(self, args): - rc = self._new_rc('/pipelines', 'name') + rc = self._new_rc('/pipelines', 'pipeline') obj = self._read_object() rc.create(obj) def cmd_update_pipeline(self, args): - rc = self._new_rc('/pipelines', 'name') + rc = self._new_rc('/pipelines', 'pipeline') obj = self._read_object() rc.update(obj) |