Skip to content

Commit a26e585

Browse files
committed
fix(types): do not split single value string in ListAttribute
1 parent babd298 commit a26e585

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gitlab/types.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ def set_from_cli(self, cli_value):
3838
self._value = [item.strip() for item in cli_value.split(",")]
3939

4040
def get_for_api(self):
41+
# Do not comma-split single value passed as string
42+
if isinstance(self._value, str):
43+
return self._value
44+
4145
return ",".join(self._value)
4246

4347

0 commit comments

Comments
 (0)