From 1ce40eacb7eac147f91e3076123cd76fefffffe0 Mon Sep 17 00:00:00 2001
From: Krish Moodbidri <krish94@uab.edu>
Date: Fri, 17 Nov 2023 15:39:07 -0600
Subject: [PATCH] Retrieve the OpenStack instance ID for the current count
 index.

---
 ohpc-instance/main.tf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ohpc-instance/main.tf b/ohpc-instance/main.tf
index bbc7605..af25b34 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 = openstack_compute_instance_v2.ohpc.id
+    value = openstack_compute_instance_v2.ohpc[count.index].id
 }
 
 output "ssh_host" {
-- 
GitLab