mirror of
https://github.com/trailofbits/algo.git
synced 2025-08-02 10:53:01 +02:00
lightsail_region_facts fix
This commit is contained in:
parent
a54aab66e0
commit
e4908b84a7
2 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ def main():
|
||||||
response = client.get_regions(
|
response = client.get_regions(
|
||||||
includeAvailabilityZones=False
|
includeAvailabilityZones=False
|
||||||
)
|
)
|
||||||
module.exit_json(changed=False, results=response)
|
module.exit_json(changed=False, data=response)
|
||||||
except (botocore.exceptions.ClientError, Exception) as e:
|
except (botocore.exceptions.ClientError, Exception) as e:
|
||||||
module.fail_json(msg=str(e), exception=traceback.format_exc())
|
module.fail_json(msg=str(e), exception=traceback.format_exc())
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
- name: Set facts about the regions
|
- name: Set facts about the regions
|
||||||
set_fact:
|
set_fact:
|
||||||
lightsail_regions: "{{ _lightsail_regions.results.regions | sort(attribute='name') }}"
|
lightsail_regions: "{{ _lightsail_regions.data.regions | sort(attribute='name') }}"
|
||||||
|
|
||||||
- name: Set the default region
|
- name: Set the default region
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
Loading…
Add table
Reference in a new issue