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

[Jormungandr]: Config added, init_kraken_instances #4122

Merged
merged 2 commits into from
Oct 4, 2023

Conversation

azime
Copy link
Contributor

@azime azime commented Oct 2, 2023

Jira: NAV-2351

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@@ -155,7 +155,8 @@ def initialization(self):

# we fetch the krakens metadata first
# not on the ping thread to always have the data available (for the tests for example)
self.init_kraken_instances()
if app.config.get('INIT_KRAKEN_INSTANCES', False):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you want to make the init when the parameter is false ?

Suggested change
if app.config.get('INIT_KRAKEN_INSTANCES', False):
if app.config.get('INIT_KRAKEN_INSTANCES', True):

Copy link
Contributor

@pbougue pbougue Oct 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

False here is the default value of the .get() 😉

@azime azime merged commit 47c574e into dev Oct 4, 2023
@azime azime deleted the conf_init_kraken_instances branch October 4, 2023 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants