Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 8, 2024
1 parent a6f177e commit 44408fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acmpca/certificate.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ locals {

output_file_directory = var.output_file_directory != null ? var.output_file_directory : format("%v/%v", path.root, "certs")
_cert_filename = coalesce(var.certificate_cn, local.cert_dns)
generate_cert_filename = try(regex("[^a-zA-Z0-9_-.]", local._cert_filename), false)
generate_cert_filename = try(regex("[^a-zA-Z0-9_\\.-]", local._cert_filename), "") != ""
cert_filename = local.generate_cert_filename ? random_uuid.filename[0].result : local._cert_filename
}

Expand Down

0 comments on commit 44408fe

Please sign in to comment.