Commit e2bb190
committed
Fix Vultr regions string conversion bug
The "Format regions" task was converting region dictionaries to strings
using {{ v }} in a Jinja2 loop, which caused the subsequent sort() to
fail with "object of type 'str' has no attribute 'country'".
Changed to directly assign the regions array from the API response,
preserving the dictionary objects with their country, city, id, and
other attributes.
Fixes the error: "object of type 'str' has no attribute 'country'"
when provisioning Vultr servers.1 parent 4c836e1 commit e2bb190
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 32 | + | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| |||
0 commit comments