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 8cfd3e3 + df6ea90 commit 406d8c3Copy full SHA for 406d8c3
main.tf
@@ -43,14 +43,16 @@ data "vsphere_virtual_machine" "template" {
43
}
44
45
data "vsphere_tag_category" "category" {
46
- count = var.tags != null ? length(var.tags) : 0
47
- name = keys(var.tags)[count.index]
+ count = var.tags != null ? length(var.tags) : 0
+ name = keys(var.tags)[count.index]
48
+ depends_on = [var.vm_depends_on]
49
50
51
data "vsphere_tag" "tag" {
52
count = var.tags != null ? length(var.tags) : 0
53
name = var.tags[keys(var.tags)[count.index]]
54
category_id = "${data.vsphere_tag_category.category[count.index].id}"
55
56
57
58
locals {
0 commit comments