summaryrefslogtreecommitdiff
path: root/gitlab
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2020-03-28 18:52:29 +0100
committerNejc Habjan <hab.nejc@gmail.com>2020-03-28 18:52:29 +0100
commita26e58585b3d82cf1a3e60a3b7b3bfd7f51d77e5 (patch)
tree84ab6c9ee695281235155f7ad2b138684fc8a322 /gitlab
parentbabd298eca0586dce134d65586bf50410aacd035 (diff)
downloadgitlab-a26e58585b3d82cf1a3e60a3b7b3bfd7f51d77e5.tar.gz
fix(types): do not split single value string in ListAttributefix/listattribute-get-api-splits-string
Diffstat (limited to 'gitlab')
-rw-r--r--gitlab/types.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gitlab/types.py b/gitlab/types.py
index 525dc30..e07d078 100644
--- a/gitlab/types.py
+++ b/gitlab/types.py
@@ -38,6 +38,10 @@ class ListAttribute(GitlabAttribute):
self._value = [item.strip() for item in cli_value.split(",")]
def get_for_api(self):
+ # Do not comma-split single value passed as string
+ if isinstance(self._value, str):
+ return self._value
+
return ",".join(self._value)