stackhpc / ansible-slurm-appliance

A Slurm-based HPC workload management environment, driven by Ansible.
36 stars 15 forks source link

Use most-recent image in skeleton terraform if multiple found #350

Closed sjpb closed 5 months ago

sjpb commented 5 months ago

Sometimes terraform apply in the Arcus CI project with the stackhpc environment fails with

│ Error: Your query returned more than one result. Please try a more specific search criteria, or set `most_recent` attribute to true.

This fixes this by a) making all image parameters use the image uid and b) finding those images using terraform's most_recent option.