Skip to content

Commit b2453ca

Browse files
authored
Update main.tf
FIX: Remove dots from ssh keypair name
1 parent f6d46ba commit b2453ca

File tree

1 file changed

+2
-2
lines changed
  • iac/cloud/openstack/lib/openstack-keypair

1 file changed

+2
-2
lines changed

iac/cloud/openstack/lib/openstack-keypair/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resource "openstack_compute_keypair_v2" "ssh_keypair" {
2-
name = format("%skey", var.naming_prefix)
2+
name = replace(format("%skey", var.naming_prefix), ".", "-")
33
}
44

55
resource "local_file" "private_key" {
@@ -12,4 +12,4 @@ resource "local_file" "public_key" {
1212
content = openstack_compute_keypair_v2.ssh_keypair.public_key
1313
filename = "${path.root}/id_rsa.pub"
1414
file_permission = "0644"
15-
}
15+
}

0 commit comments

Comments
 (0)