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:
parent
1eed8900ed
commit
3143abc8dc
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue