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 95c534d commit 780555a
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), false)
cert_filename = local.generate_cert_filename ? local._cert_filename : random_uuid.filename[0].result
}

Expand Down

0 comments on commit 780555a

Please sign in to comment.