try:
if isinstance(setting, ConfigListSetting):
if value:
- for config in value:
+ lines.append('{}{}:'.format(prefix, name))
+ for i,config in enumerate(value):
+ lines.append('{} {}:'.format(prefix, i))
lines.append(
- config.dump(help=help, prefix=prefix+' '))
+ config.dump(help=help, prefix=prefix+' '))
continue
elif isinstance(setting, ConfigSetting):
if value is not None:
+ lines.append('{}{}:'.format(prefix, name))
lines.append(value.dump(help=help, prefix=prefix+' '))
continue
value_string = setting.convert_to_text(self[name])
help_string = '\t({})'.format(setting.help())
else:
help_string = ''
- lines.append('{}: {}{}'.format(
- name, value_string, help_string))
+ lines.append('{}{}: {}{}'.format(
+ prefix, name, value_string, help_string))
except Exception:
_LOG.error('could not dump {} ({!r})'.format(name, value))
raise