From e57b7794d1e1ae6795f5b914132a2891dc0d9509 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Sat, 11 Jul 2015 07:19:22 +0200 Subject: fix delete and update CLI methods --- gitlab/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gitlab/cli.py') 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 -- cgit v1.2.1