From 18c0e54e4fe93a7b0a1865976638f1b4ecf9adb4 Mon Sep 17 00:00:00 2001 From: Florian Ruynat <16313165+floryut@users.noreply.github.com> Date: Mon, 15 Mar 2021 15:05:06 +0100 Subject: [PATCH] Add most_recent = true while retrieving the latest image (#7376) --- contrib/terraform/openstack/modules/compute/main.tf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/terraform/openstack/modules/compute/main.tf b/contrib/terraform/openstack/modules/compute/main.tf index dd7c3cc17..c8d9f4ff3 100644 --- a/contrib/terraform/openstack/modules/compute/main.tf +++ b/contrib/terraform/openstack/modules/compute/main.tf @@ -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 } -- GitLab