diff --git a/contrib/terraform/openstack/modules/compute/main.tf b/contrib/terraform/openstack/modules/compute/main.tf index dd7c3cc172ca895095000a4552208133e0188297..c8d9f4ff39ffc3f6775b5cb1e035d52c4011be9b 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 }