diff --git a/ohpc-instance/main.tf b/ohpc-instance/main.tf index 71a9b011e5c72aa7c0085132fa5295fce970381f..427a9ed6c0cae75157769ed8e1b3bf5a64dba7d0 100644 --- a/ohpc-instance/main.tf +++ b/ohpc-instance/main.tf @@ -25,7 +25,6 @@ variable "external_network" {} # is created in floating-ip module and called in root module variable "floating_ip_ohpc" {type = string} -variable "host_prefix" {} variable "ohpc_user" {} variable "ssh_private_key" {} @@ -76,5 +75,5 @@ output "id" { } output "ssh_host" { - value = format(var.host_prefix,element(split(".", var.floating_ip_ohpc),3,),) + value = var.floating_ip_ohpc }