Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure info config only display config variables #1897

Merged
merged 1 commit into from
Sep 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
- Ensure harvest previewing is done against current form content [#1888](https://github.com/opendatateam/udata/pull/1888)
- Ensure deleted objects are unindexed [#1891](https://github.com/opendatateam/udata/pull/1891)
- Fix the dataset resources list layout wrapping [#1893](https://github.com/opendatateam/udata/pull/1893)
- Fix wrong behavior for weblinks [#1894](https://github.com/opendatateam/udata/pull/1894)
- Fix wrong behavior for weblinks [#1894](https://github.com/opendatateam/udata/pull/1894)
- Ensure `info config` command only displays configuration variables [#1897](https://github.com/opendatateam/udata/pull/1897)

### Internal

Expand Down
2 changes: 2 additions & 0 deletions udata/commands/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def config():

log.info(white('Current configuration'))
for key in sorted(current_app.config):
if key.startswith('__') or not key.isupper():
continue
echo('{0}: {1}'.format(white(key), current_app.config[key]))


Expand Down