Skip to content

Commit cb8ca65

Browse files
author
Gauvain Pocentek
committed
[cli] Fix listing of strings
1 parent 88391bf commit cb8ca65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gitlab/v4/cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ def extend_parser(parser):
249249

250250

251251
def get_dict(obj, fields):
252+
if isinstance(obj, six.string_types):
253+
return obj
254+
252255
if fields:
253256
return {k: v for k, v in obj.attributes.items()
254257
if k in fields}

0 commit comments

Comments
 (0)