remove whitespaces then check for empty string as password

This commit is contained in:
reyesj2
2025-04-11 10:42:45 -05:00
parent ecd7da540a
commit 6fe240de45

View File

@@ -3,7 +3,7 @@
{%- set valid_users = [] -%}
{%- for item, user in KAFKA_EXTERNAL_USERS.items() -%}
{% if 'password' in user and user.password is not none and user.password != "" -%}
{% if 'password' in user and user.password is not none and user.password.strip() != "" -%}
{% do valid_users.append('user_' ~ user.username ~ '="' ~ user.password ~ '"') -%}
{% endif -%}
{%- endfor -%}