Skip to content

Commit ceebc36

Browse files
committed
Update preemptible argument for Terraform 0.12
1 parent db08a53 commit ceebc36

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

modules/instance_template/main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ resource "google_compute_instance_template" "tpl" {
9898
}
9999

100100
scheduling {
101-
preemptible = "${var.preemptible}"
101+
preemptible = var.preemptible
102102
}
103103
}
104-

modules/instance_template/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ variable "labels" {
4242
}
4343

4444
variable "preemptible" {
45+
type = bool
4546
description = "Allow the instance to be preempted"
46-
default = "false"
47+
default = false
4748
}
4849

4950
#######
@@ -134,4 +135,3 @@ variable "service_account" {
134135
})
135136
description = "Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template.html#service_account."
136137
}
137-

0 commit comments

Comments
 (0)