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 f4ea2e2 + f73a58f commit 20f369fCopy full SHA for 20f369f
netbox/vm/main.tf
@@ -4,7 +4,7 @@ locals {
4
fqdn = "${local.hostname}.${local.domain}"
5
ip_address = var.ip_address != null ? split("/", var.ip_address)[0] : null
6
ip_prefix = var.ip_address != null ? try(split("/", var.ip_address)[1], "32") : null
7
- tags = var.tags != null ? var.tags : data.netbox_cluster.main[0].tags
+ tags = var.tags != null ? var.tags : try(data.netbox_cluster.main[0].tags, [])
8
}
9
10
resource "netbox_virtual_machine" "main" {
0 commit comments