From c0968a8fdbc6634eab72bf35ba075383b263a17a Mon Sep 17 00:00:00 2001 From: David Myers Date: Sat, 26 Mar 2022 04:41:55 -0400 Subject: [PATCH] Only offer available DigitalOcean regions (#14447) --- roles/cloud-digitalocean/tasks/prompts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/cloud-digitalocean/tasks/prompts.yml b/roles/cloud-digitalocean/tasks/prompts.yml index b288d93..5fdfe4a 100644 --- a/roles/cloud-digitalocean/tasks/prompts.yml +++ b/roles/cloud-digitalocean/tasks/prompts.yml @@ -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: