From e99a0db174886fe72d832183e1aea0e9f424191d Mon Sep 17 00:00:00 2001 From: Guido Grazioli Date: Wed, 7 Jun 2023 12:25:58 +0200 Subject: [PATCH] Add missing type conversion in templates --- roles/keycloak/templates/standalone-ha.xml.j2 | 2 +- roles/keycloak/templates/standalone-infinispan.xml.j2 | 2 +- roles/keycloak/templates/standalone.xml.j2 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/keycloak/templates/standalone-ha.xml.j2 b/roles/keycloak/templates/standalone-ha.xml.j2 index e3b62ea..f108d2d 100644 --- a/roles/keycloak/templates/standalone-ha.xml.j2 +++ b/roles/keycloak/templates/standalone-ha.xml.j2 @@ -139,7 +139,7 @@ {{ keycloak_jdbc[keycloak_jdbc_engine].validate_query }} {{ keycloak_db_background_validate_on_match }} -{% if keycloak_db_background_validation_millis > 0 or keycloak_db_background_validation %} +{% if keycloak_db_background_validation_millis | int > 0 or keycloak_db_background_validation %} {{ keycloak_db_background_validation }} {{ keycloak_db_background_validation_millis }} {% endif %} diff --git a/roles/keycloak/templates/standalone-infinispan.xml.j2 b/roles/keycloak/templates/standalone-infinispan.xml.j2 index c1590cd..0d052ed 100644 --- a/roles/keycloak/templates/standalone-infinispan.xml.j2 +++ b/roles/keycloak/templates/standalone-infinispan.xml.j2 @@ -139,7 +139,7 @@ {{ keycloak_jdbc[keycloak_jdbc_engine].validate_query }} {{ keycloak_db_background_validate_on_match }} -{% if keycloak_db_background_validation_millis > 0 or keycloak_db_background_validation %} +{% if keycloak_db_background_validation_millis | int > 0 or keycloak_db_background_validation %} {{ keycloak_db_background_validation }} {{ keycloak_db_background_validation_millis }} {% endif %} diff --git a/roles/keycloak/templates/standalone.xml.j2 b/roles/keycloak/templates/standalone.xml.j2 index 4e5aa05..bf2d528 100644 --- a/roles/keycloak/templates/standalone.xml.j2 +++ b/roles/keycloak/templates/standalone.xml.j2 @@ -126,7 +126,7 @@ {{ keycloak_jdbc[keycloak_jdbc_engine].validate_query }} {{ keycloak_db_background_validate_on_match }} -{% if keycloak_db_background_validation_millis > 0 or keycloak_db_background_validation %} +{% if keycloak_db_background_validation_millis | int > 0 or keycloak_db_background_validation %} {{ keycloak_db_background_validation }} {{ keycloak_db_background_validation_millis }} {% endif %}