We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 99e0efc + 5f615bc commit 786f9e0Copy full SHA for 786f9e0
output.tf
@@ -28,6 +28,10 @@ output "Windows-uuid" {
28
value = vsphere_virtual_machine.Windows.*.uuid
29
}
30
31
+output "Windows-disks" {
32
+ value = { for d in flatten(vsphere_virtual_machine.Windows.*.disk) : d.label => d.uuid }
33
+}
34
+
35
output "Linux-VM" {
36
description = "VM Names"
37
value = vsphere_virtual_machine.Linux.*.name
@@ -47,3 +51,7 @@ output "Linux-uuid" {
47
51
description = "UUID of the VM in vSphere"
48
52
value = vsphere_virtual_machine.Linux.*.uuid
49
53
54
55
+output "Linux-disks" {
56
+ value = { for d in flatten(vsphere_virtual_machine.Linux.*.disk) : d.label => d.uuid }
57
0 commit comments