From a6218cbaefe8f751d6d3857c17474859a95e74c8 Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Sun, 16 Nov 2025 13:58:37 -0500 Subject: [PATCH] fix: changed join function sytnax to correct Python method syntax --- roles/bootstrap/templates/sshd_config.d/allowance.conf.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/bootstrap/templates/sshd_config.d/allowance.conf.j2 b/roles/bootstrap/templates/sshd_config.d/allowance.conf.j2 index 3e6dfb7..ff3c5f2 100644 --- a/roles/bootstrap/templates/sshd_config.d/allowance.conf.j2 +++ b/roles/bootstrap/templates/sshd_config.d/allowance.conf.j2 @@ -1,15 +1,15 @@ {% if list_type == 'whitelist' %} {% if policed_groups is not None and len(policed_groups) > 0 %} -AllowGroups {{ policed_groups.join(' ') }} +AllowGroups {{ ' '.join(policed_groups) }} {% endif %} {% if policed_users is not None and len(policed_users) > 0 %} -AllowUsers {{ policed_users.join(' ') }} +AllowUsers {{ ' '.join(policed_users) }} {% endif %} {% else %} {% if policed_groups is not None and len(policed_groups) > 0 %} -DenyGroups {{ policed_groups.join(' ') }} +DenyGroups {{ ' '.join(policed_groups) }} {% endif %} {% if policed_users is not None and len(policed_users) > 0 %} -DenyGroups {{ policed_users.join(' ') }} +DenyGroups {{ ' '.join(policed_users) }} {% endif %} {% endif %} \ No newline at end of file