diff --git a/salt/cloud/clouds/ec2.py b/salt/cloud/clouds/ec2.py index 5e7f03d02b..21d11a9aa7 100644 --- a/salt/cloud/clouds/ec2.py +++ b/salt/cloud/clouds/ec2.py @@ -3076,6 +3076,7 @@ def _extract_instance_info(instances): for item in instance['instancesSet']['item']: name = _extract_name_tag(item) ret[name] = item + ret[name]['name'] = name ret[name].update( dict( id=item['instanceId'], @@ -3090,6 +3091,7 @@ def _extract_instance_info(instances): item = instance['instancesSet']['item'] name = _extract_name_tag(item) ret[name] = item + ret[name]['name'] = name ret[name].update( dict( id=item['instanceId'],