mconf: Fix print when choices is a string instead of list
@@ -82,7 +82,10 @@ class Conf:
value_col.append(make_lower_case(opt['value']))
if opt['choices']:
choices_found = True
+ if isinstance(opt['choices'], list):
choices_col.append('[{0}]'.format(', '.join(make_lower_case(opt['choices']))))
+ else:
+ choices_col.append(make_lower_case(opt['choices']))
else:
choices_col.append('')
