diff options
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 3882c19..c2b2fa5 100644 --- a/gitlab/cli.py +++ b/gitlab/cli.py @@ -188,9 +188,9 @@ def do_delete(cls, gl, what, args): if not cls.canDelete: _die("%s objects can't be deleted" % what) - o = do_get(cls, gl, what, args) + id = args.pop(cls.idAttr) try: - o.delete() + gl.delete(cls, id, **args) except Exception as e: _die("Impossible to destroy object (%s)" % str(e)) |