@@ -174,9 +174,9 @@ module "hetzner_infrastructure" {
174174# Standardized outputs (regardless of provider)
175175output "vm_ip" {
176176 value = var.infrastructure_provider == "local" ?
177- (length(module.local_infrastructure) > 0 ?
177+ (length(module.local_infrastructure) > 0 ?
178178 module.local_infrastructure[0].vm_ip : "No IP assigned yet") :
179- (length(module.hetzner_infrastructure) > 0 ?
179+ (length(module.hetzner_infrastructure) > 0 ?
180180 module.hetzner_infrastructure[0].vm_ip : "No IP assigned yet")
181181 description = "IP address of the created VM"
182182}
@@ -190,9 +190,9 @@ output "vm_name" {
190190
191191output "connection_info" {
192192 value = var.infrastructure_provider == "local" ?
193- (length(module.local_infrastructure) > 0 ?
193+ (length(module.local_infrastructure) > 0 ?
194194 module.local_infrastructure[0].connection_info : "VM not created") :
195- (length(module.hetzner_infrastructure) > 0 ?
195+ (length(module.hetzner_infrastructure) > 0 ?
196196 module.hetzner_infrastructure[0].connection_info : "VM not created")
197197 description = "SSH connection command"
198198}
@@ -526,7 +526,7 @@ resource "hcloud_server" "vm" {
526526 ssh_keys = [hcloud_ssh_key.torrust_key.id]
527527
528528 user_data = templatefile(
529- "${path.module}/../../cloud-init/${var.use_minimal_config ?
529+ "${path.module}/../../cloud-init/${var.use_minimal_config ?
530530 "user-data-minimal.yaml.tpl" : "user-data.yaml.tpl"}", {
531531 ssh_public_key = var.ssh_public_key
532532 })
0 commit comments