Skip to content

Commit

Permalink
Add most_recent = true while retrieving the latest image (kubernetes-…
Browse files Browse the repository at this point in the history
  • Loading branch information
floryut authored Mar 15, 2021
1 parent 85007fa commit 18c0e54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/terraform/openstack/modules/compute/main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
data "openstack_images_image_v2" "vm_image" {
count = var.image_uuid == "" ? 1 : 0
most_recent = true
name = var.image
}

data "openstack_images_image_v2" "gfs_image" {
count = var.image_gfs_uuid == "" ? var.image_uuid == "" ? 1 : 0 : 0
most_recent = true
name = var.image_gfs == "" ? var.image : var.image_gfs
}

Expand Down

0 comments on commit 18c0e54

Please sign in to comment.