summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)