lightsail_region_facts fix

This commit is contained in:
Jack Ivanov 2019-08-26 15:02:47 +02:00
parent a54aab66e0
commit e4908b84a7
2 changed files with 2 additions and 2 deletions

View file

@ -93,7 +93,7 @@ def main():
response = client.get_regions(
includeAvailabilityZones=False
)
module.exit_json(changed=False, results=response)
module.exit_json(changed=False, data=response)
except (botocore.exceptions.ClientError, Exception) as e:
module.fail_json(msg=str(e), exception=traceback.format_exc())

View file

@ -32,7 +32,7 @@
- name: Set facts about the regions
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
set_fact: