Enable project and volume usage to be optional, off by default, unless the use_project and use_volume variables are set to a positive number

This commit is contained in:
2020-08-09 16:39:27 -05:00
parent 3f903bcb6c
commit 9fb985dae4
7 changed files with 19 additions and 10 deletions

View File

@@ -1,3 +1,4 @@
data "digitalocean_project" "this" {
name = var.project
count = var.use_project > 0 ? 1 : 0
name = var.project
}