From 4607cc4132a77c5243e0e9a89ad90388381b97d5 Mon Sep 17 00:00:00 2001 From: Richard Stempfl Date: Fri, 24 May 2024 14:02:09 +0200 Subject: [PATCH] fixes #37505 - fix clevis & tang snippet --- .../provisioning_templates/snippet/disk_enc_clevis_tang.erb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/unattended/provisioning_templates/snippet/disk_enc_clevis_tang.erb b/app/views/unattended/provisioning_templates/snippet/disk_enc_clevis_tang.erb index 4877a716d56..296dc9b7996 100644 --- a/app/views/unattended/provisioning_templates/snippet/disk_enc_clevis_tang.erb +++ b/app/views/unattended/provisioning_templates/snippet/disk_enc_clevis_tang.erb @@ -24,7 +24,7 @@ description: | end -%> -<% if (@host.operatingsystem.family == 'Redhat' || @host.operatingsystem.name == 'Ubuntu') && unless tang_server_list.blank? -%> +<% if (@host.operatingsystem.family == 'Redhat' || @host.operatingsystem.name == 'Ubuntu') && tang_server_list.present? -%> cat > /tmp/rootdir-luks-device.sh << "EOF" #!/bin/sh @@ -87,4 +87,3 @@ else fi <% end -%> -<% end -%>