diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2016-12-26 19:22:08 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2016-12-26 19:22:11 +0100 |
commit | d6c87d956eaaeafe2bd4b0e65b42e1afdf0e10bb (patch) | |
tree | 080168716ab138db2e61cc30a7f545a7d366e91a /gitlab/objects.py | |
parent | 3804661f2c1336eaac0648cf9d0fc47687244e02 (diff) | |
download | gitlab-d6c87d956eaaeafe2bd4b0e65b42e1afdf0e10bb.tar.gz |
sudo: always use strings
The behavior seems to have changed on recent gitlab releases and
providing an ID as int doesn't work anymore. Using a string seems to
make things work again.
Fixes #193
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r-- | gitlab/objects.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py index 7a442ef..2a33dc5 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -222,6 +222,8 @@ class GitlabObject(object): value = getattr(self, attribute) if isinstance(value, list): value = ",".join(value) + if attribute == 'sudo': + value = str(value) data[attribute] = value data.update(extra_parameters) |