Skip to content

Commit

Permalink
Ugh, terraform doesn't really have booleans. https://medium.com/@xtg/…
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemarsden committed Apr 26, 2020
1 parent 7cc31ba commit e5ebf9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aws/dotscience-aws.tf
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ resource "aws_ebs_volume" "ds_hub_volume" {

lifecycle {
# Prevent destruction of the hub disk if data loss is not permitted.
prevent_destroy = !var.permit_data_loss
prevent_destroy = var.permit_data_loss ? false : true
}

}
Expand Down
2 changes: 1 addition & 1 deletion gcp/dotscience-gcp.tf
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ resource "google_compute_disk" "dotscience_hub_disk" {

lifecycle {
# Prevent destruction of the hub disk if data loss is not permitted.
prevent_destroy = !var.permit_data_loss
prevent_destroy = var.permit_data_loss ? false : true
}

}
Expand Down

0 comments on commit e5ebf9e

Please sign in to comment.