Skip to content

Commit

Permalink
Use region code instead of name to deploy in non-default Vultr region. (
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhall79 committed Apr 1, 2024
1 parent a4a9d6d commit 6ce6f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/cloud-vultr/tasks/prompts.yml
Expand Up @@ -54,5 +54,5 @@
set_fact:
algo_vultr_region: >-
{% if region is defined %}{{ region }}
{%- elif _algo_region.user_input %}{{ vultr_regions[_algo_region.user_input | int -1 ]['name'] | lower }}
{%- elif _algo_region.user_input %}{{ vultr_regions[_algo_region.user_input | int -1 ]['regioncode'] | lower }}
{%- else %}{{ vultr_regions[default_region | int - 1]['regioncode'] | lower }}{% endif %}

0 comments on commit 6ce6f5c

Please sign in to comment.