Skip to content

Commit

Permalink
Merge pull request #105 from CircleCI-Public/SERVER-1164
Browse files Browse the repository at this point in the history
bugfix - nonsensitive fails if MTLS is not enabled
  • Loading branch information
soulchips authored Jun 11, 2021
2 parents 4808794 + 4ebfac4 commit 64412ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nomad-aws/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ output "nomad_server_cert" {
}

output "nomad_server_key" {
value = nonsensitive(var.enable_mtls ? module.nomad_tls[0].nomad_server_key : "")
value = var.enable_mtls ? nonsensitive(module.nomad_tls[0].nomad_server_key) : ""
}

output "nomad_tls_ca" {
Expand Down
2 changes: 1 addition & 1 deletion nomad-gcp/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ output "nomad_server_cert" {
}

output "nomad_server_key" {
value = nonsensitive(var.unsafe_disable_mtls ? "" : module.tls[0].nomad_server_key)
value = var.unsafe_disable_mtls ? "" : nonsensitive(module.tls[0].nomad_server_key)
}

output "nomad_tls_ca" {
Expand Down

0 comments on commit 64412ad

Please sign in to comment.