1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

ec2_metadata_facts: Handle missing identity_document_region (#49040)

* Handle missing identity_document_region

* Fix indentation size to match standard
This commit is contained in:
kcd83 2018-11-24 13:51:50 +13:00 committed by Will Thames
parent 1eed8900ed
commit 3143abc8dc

View file

@ -532,7 +532,8 @@ class Ec2Metadata(object):
data = self.fix_invalid_varnames(data)
# Maintain old key for backwards compatibility
data['ansible_ec2_placement_region'] = data['ansible_ec2_instance_identity_document_region']
if 'ansible_ec2_instance_identity_document_region' in data:
data['ansible_ec2_placement_region'] = data['ansible_ec2_instance_identity_document_region']
return data