Skip to content

Commit

Permalink
Don't create tag if droplet count is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
pysysops committed Jan 23, 2019
1 parent 6539341 commit 5ab85b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ data "digitalocean_image" "custom" {
}

resource "digitalocean_tag" "default_tag" {
count = "${var.droplet_count > 0 ? 1 : 0}"

name = "DEFAULT:${var.droplet_name}"
}

Expand Down

0 comments on commit 5ab85b0

Please sign in to comment.