We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a439f45 commit 3e52f47Copy full SHA for 3e52f47
lib/ansible/modules/cloud/amazon/ec2_remote_facts.py
@@ -108,9 +108,11 @@ def get_instance_info(instance):
108
except AttributeError:
109
pass
110
111
+ instance_profile = dict(instance.instance_profile) if instance.instance_profile is not None else None
112
+
113
instance_info = { 'id': instance.id,
114
'kernel': instance.kernel,
- 'instance_profile': dict(instance.instance_profile),
115
+ 'instance_profile': instance_profile,
116
'root_device_type': instance.root_device_type,
117
'private_dns_name': instance.private_dns_name,
118
'public_dns_name': instance.public_dns_name,
0 commit comments