mozilla/configman — Issue #17: Cannot export to .json
Author: AdrianGaudebert
Created: 2012-01-04 18:44:37+00:00
State: open

When trying to use --admin.dump_conf with a JSON output, I get an error saying ``json isn't a registered file name extension``. Here is the command and the entire output:

adrian@adrian-ThinkPad-T510:~/mozilla/workspace/socorro$ python socorro/app/example_app.py --admin.dump_conf=./config/config.json
Traceback (most recent call last):
File "socorro/app/example_app.py", line 47, in
main(ExampleApp)
File "/vagrant-share/socorro/socorro/app/generic_app.py", line 125, in main
app_description=app_description,
File "/vagrant-share/socorro/configman/configman/config_manager.py", line 249, in __init__
self.dump_conf()
File "/vagrant-share/socorro/configman/configman/config_manager.py", line 368, in dump_conf
self.write_conf(config_file_type, opener)
File "/vagrant-share/socorro/configman/configman/config_manager.py", line 386, in write_conf
config_fp)
File "/vagrant-share/socorro/configman/configman/value_sources/__init__.py", line 153, in write
file_name_extension)
configman.value_sources.source_exceptions.UnknownFileExtensionException: json isn't a registered file name extension