Use null instead of zero length string

This commit is contained in:
Jason Rothstein 2021-05-01 18:02:30 -05:00
parent 334f8165d3
commit 04c7f22d4b

View File

@ -9,5 +9,5 @@ resource "digitalocean_droplet" "this" {
ssh_keys = var.ssh_keys
size = var.size
tags = var.tags
vpc_uuid = var.use_vpc > 0 ? data.digitalocean_vpc.this[0].id : ""
vpc_uuid = var.use_vpc > 0 ? data.digitalocean_vpc.this[0].id : null
}