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

Undefine keycloak_db_valid_conn_sql default #91

Merged
merged 2 commits into from
Jul 31, 2023

Conversation

schmaxit
Copy link
Contributor

@schmaxit schmaxit commented Jun 9, 2023

Setting an empty string default for keycloak_db_valid_conn_sql results in an empty value in the configuration file. We should rely on defaults set fo keycloak_jdbc.[database].validate_query.

The alternative cloud be using "{{ keycloak_db_valid_conn_sql | default('select 1', true) }}" value for keycloak_jdbc.[database].validate_query

rely on defaults set in keycloak_jdbc dict
@guidograzioli
Copy link
Member

guidograzioli commented Jun 9, 2023

Hello, thanks for the PR; what version of ansible are you on? We get the variable undefined, not empty string, in our CI testing. Anyway, I think the change makes sense, but I'd prefer the alternative "{{ keycloak_db_valid_conn_sql | default('select 1', true) }}" (just in order to not make a variable disappear)

Your thoughts?

@guidograzioli guidograzioli added the bugfixes Fixes that resolve issues. SHOULD not be used for minor enhancements label Jun 9, 2023
@guidograzioli guidograzioli changed the title Remove empty string default for keycloak_db_valid_conn_sql Undefine keycloak_db_valid_conn_sql default Jul 31, 2023
@guidograzioli guidograzioli merged commit 9db1cbd into ansible-middleware:main Jul 31, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfixes Fixes that resolve issues. SHOULD not be used for minor enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants