diff options
| author | Gauvain Pocentek <gauvain@pocentek.net> | 2017-10-08 08:40:55 +0200 |
|---|---|---|
| committer | Gauvain Pocentek <gauvain@pocentek.net> | 2017-10-08 09:03:02 +0200 |
| commit | 87649035230cc1161a3e8e8e648d4f65f8480ac0 (patch) | |
| tree | 95240231733d27410968dad994b96229114babff /gitlab | |
| parent | ac430a3cac4be76efc02e4321f7ee88867d28712 (diff) | |
| download | gitlab-87649035230cc1161a3e8e8e648d4f65f8480ac0.tar.gz | |
Make the delete() method handle / in ids
Replace the / with the HTTP %2F as is done with other methods.
Closes #337
Diffstat (limited to 'gitlab')
| -rw-r--r-- | gitlab/mixins.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gitlab/mixins.py b/gitlab/mixins.py index aa52989..2b58d49 100644 --- a/gitlab/mixins.py +++ b/gitlab/mixins.py @@ -235,6 +235,9 @@ class DeleteMixin(object): GitlabAuthenticationError: If authentication is not correct GitlabDeleteError: If the server cannot perform the request """ + import pdb; pdb.set_trace() + if not isinstance(id, int): + id = id.replace('/', '%2F') path = '%s/%s' % (self.path, id) self.gitlab.http_delete(path, **kwargs) |
