summaryrefslogtreecommitdiff
path: root/dist/api_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'dist/api_config.py')
-rw-r--r--dist/api_config.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/dist/api_config.py b/dist/api_config.py
index b451e939ef3..5ccd8247b76 100644
--- a/dist/api_config.py
+++ b/dist/api_config.py
@@ -195,13 +195,15 @@ def checkstr(c):
def get_default(c):
t = gettype(c)
if c.default == 'false':
- return '0'
+ return 'false'
+ elif c.default == 'true':
+ return 'true'
elif t == 'string' and c.default == 'none':
return ''
elif t == 'category':
return '(%s)' % (','.join('%s=%s' % (subc.name, get_default(subc))
for subc in sorted(c.subconfig)))
- elif (c.default or t == 'int') and c.default != 'true':
+ elif c.default or t == 'int':
return str(c.default).replace('"', '\\"')
else:
return ''