Skip to content

Commit

Permalink
Modify to incorporate TF v0.15 changes
Browse files Browse the repository at this point in the history
Changed list() to tolist([])
  • Loading branch information
akutschi committed Apr 15, 2021
1 parent 1e4c424 commit d610690
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ terraform {
version = "~> 2.0"
}
}
required_version = ">= 0.14, < 0.15"
required_version = ">= 0.14, < 0.16"
}

resource "digitalocean_droplet" "droplet" {
Expand All @@ -19,12 +19,12 @@ resource "digitalocean_droplet" "droplet" {
region = var.droplet_datacenter
tags = concat(
var.droplet_tags,
list("terraform"),
list(var.droplet_country),
list(var.droplet_datacenter),
list(var.droplet_purpose),
list(var.droplet_environment),
list(var.droplet_project),
tolist(["terraform"]),
tolist([var.droplet_country]),
tolist([var.droplet_datacenter]),
tolist([var.droplet_purpose]),
tolist([var.droplet_environment]),
tolist([var.droplet_project]),
)
size = var.droplet_size
resize_disk = var.droplet_increase_disk
Expand Down
12 changes: 6 additions & 6 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ output "droplet_inventory" {
value = [for s in digitalocean_droplet.droplet[*] : {
"groups" : concat(
var.droplet_tags,
list("terraform"),
list(var.droplet_country),
list(var.droplet_datacenter),
list(var.droplet_purpose),
list(var.droplet_environment),
list(var.droplet_project),
tolist(["terraform"]),
tolist([var.droplet_country]),
tolist([var.droplet_datacenter]),
tolist([var.droplet_purpose]),
tolist([var.droplet_environment]),
tolist([var.droplet_project]),
)
"name" : s.name,
"ip" : s.ipv4_address,
Expand Down

0 comments on commit d610690

Please sign in to comment.