ec2_metadata_facts: Handle missing identity_document_region (#49040)

* Handle missing identity_document_region

* Fix indentation size to match standard
pull/49083/head
kcd83 6 years ago committed by Will Thames
parent 1eed8900ed
commit 3143abc8dc

@ -532,7 +532,8 @@ class Ec2Metadata(object):
data = self.fix_invalid_varnames(data) data = self.fix_invalid_varnames(data)
# Maintain old key for backwards compatibility # 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 return data

Loading…
Cancel
Save