Use region code instead of name to deploy in non-default Vultr region. (#14713)

pull/14714/head^2
Matthew Hall 1 month ago committed by GitHub
parent a4a9d6d7c8
commit 6ce6f5c81e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 %}

Loading…
Cancel
Save