Only offer available DigitalOcean regions (#14447)

This commit is contained in:
David Myers 2022-03-26 04:41:55 -04:00 committed by GitHub
parent 9f241b1886
commit c0968a8fdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@
- name: Set facts about the regions
set_fact:
do_regions: "{{ _do_regions.json.regions | sort(attribute='slug') }}"
do_regions: "{{ _do_regions.json.regions | selectattr('available', 'true') | sort(attribute='slug') }}"
- name: Set default region
set_fact: