Skip to content

Commit 6560fba

Browse files
authored
fix: trim newline on public key (#216)
1 parent bf61b0b commit 6560fba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main-infra.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ resource "local_sensitive_file" "ssh_public" {
2828

2929
resource "hcloud_ssh_key" "default" {
3030
name = var.name
31-
public_key = tls_private_key.ssh.public_key_openssh
31+
public_key = trim(tls_private_key.ssh.public_key_openssh, "\n")
3232
labels = local.labels
3333
}
3434

0 commit comments

Comments
 (0)