We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf61b0b commit 6560fbaCopy full SHA for 6560fba
1 file changed
main-infra.tf
@@ -28,7 +28,7 @@ resource "local_sensitive_file" "ssh_public" {
28
29
resource "hcloud_ssh_key" "default" {
30
name = var.name
31
- public_key = tls_private_key.ssh.public_key_openssh
+ public_key = trim(tls_private_key.ssh.public_key_openssh, "\n")
32
labels = local.labels
33
}
34
0 commit comments