Skip to content

Commit

Permalink
Merge pull request #3383 from abbas1902/labels_ssd
Browse files Browse the repository at this point in the history
skip setting disk_labels if disk_type is local-ssd
  • Loading branch information
abbas1902 authored Dec 11, 2024
2 parents d3f3ceb + 27ac4ab commit 5f4bb52
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ resource "google_compute_instance_template" "tpl" {
source = lookup(disk.value, "source", null)
source_image = lookup(disk.value, "source_image", null)
type = lookup(disk.value, "disk_type", null) == "local-ssd" ? "SCRATCH" : "PERSISTENT"
labels = lookup(disk.value, "disk_labels", null)
labels = lookup(disk.value, "disk_type", null) == "local-ssd" ? null : lookup(disk.value, "disk_labels", null)

dynamic "disk_encryption_key" {
for_each = compact([var.disk_encryption_key == null ? null : 1])
Expand Down

0 comments on commit 5f4bb52

Please sign in to comment.