diff --git a/ohpc-instance/main.tf b/ohpc-instance/main.tf index 7ce5fba287ea6de2b9db0f45a069b207a6d52f15..53d63784eb6a34e58fe24e8665832db384af13e6 100644 --- a/ohpc-instance/main.tf +++ b/ohpc-instance/main.tf @@ -72,7 +72,7 @@ resource "openstack_compute_volume_attach_v2" "volume_attach" { } output "xdmod_instance_id" { - value = [for instance in openstack_compute_instance_v2.ohpc : instance.id] + value = openstack_compute_instance_v2.ohpc[0].id } output "ssh_host" { @@ -80,5 +80,8 @@ output "ssh_host" { } output "device" { - value = [for volume in openstack_compute_volume_attach_v2.volume_attach : volume.device] + value = [ + openstack_compute_volume_attach_v2.volume_attach[0].device, + openstack_compute_volume_attach_v2.volume_attach[1].device, + ] }