From b0a342ee9d3dbfe3c0e66a4e442fbb0dca6c031e Mon Sep 17 00:00:00 2001
From: Krish Moodbidri <krish94@uab.edu>
Date: Fri, 17 Nov 2023 16:18:14 -0600
Subject: [PATCH] fix code error with array count in cariable which does not
 expect instance key

---
 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 53d6378..96047aa 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[0].id
+  value = openstack_compute_instance_v2.ohpc.id
 }
 
 output "ssh_host" {
-- 
GitLab