diff options
author | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-07-11 07:19:22 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-07-11 07:19:22 +0200 |
commit | e57b7794d1e1ae6795f5b914132a2891dc0d9509 (patch) | |
tree | a0e4292f710d042f396343e0ce9f91c3f74e2667 /gitlab/cli.py | |
parent | 0922ed5453aaa5e982012bab16d9517e28626977 (diff) | |
download | gitlab-e57b7794d1e1ae6795f5b914132a2891dc0d9509.tar.gz |
fix delete and update CLI methods
Diffstat (limited to 'gitlab/cli.py')
-rw-r--r-- | gitlab/cli.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/cli.py b/gitlab/cli.py index 205f0f8..9c07e82 100644 --- a/gitlab/cli.py +++ b/gitlab/cli.py @@ -182,7 +182,7 @@ def do_delete(cls, gl, what, args): if not cls.canDelete: die("%s objects can't be deleted" % what) - o = do_get(cls, args) + o = do_get(cls, args, what, args) try: o.delete() except Exception as e: @@ -193,7 +193,7 @@ def do_update(cls, gl, what, args): if not cls.canUpdate: die("%s objects can't be updated" % what) - o = do_get(cls, args) + o = do_get(cls, args, what, args) try: for k, v in args.items(): o.__dict__[k] = v |