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

config-tool can be used with incomplete config file #5647

Merged

Conversation

smotornyuk
Copy link
Member

@smotornyuk smotornyuk commented Oct 6, 2020

Fixes #5568

Right now a config file will be loaded during CLI initialization as long as it's available, even if it's not required(generate extension, config-tool). This may cause issues if the config file contains options that prevent the initialization of CKAN(plugin, that is not installed yet; incorrect DB URL). The biggest problem here, those incorrect values cannot be changed even with config-tool, because of fail during app initialization.

This PR makes CLI completely ignore the config file for the given subset of commands(ckan.cli:_no_config_commands variable).

@amercader amercader self-assigned this Oct 6, 2020
@amercader amercader merged commit 2fc3368 into ckan:master Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Regression-2.9] Ckan Generate Config
2 participants