diff --git a/plugins/modules/ec2_vol_info.py b/plugins/modules/ec2_vol_info.py index 95628075499..45238ff9c70 100644 --- a/plugins/modules/ec2_vol_info.py +++ b/plugins/modules/ec2_vol_info.py @@ -153,11 +153,13 @@ def get_volume_info(volume, region): 'type': volume["volume_type"], 'zone': volume["availability_zone"], 'region': region, - 'throughput': volume["throughput"], 'attachment_set': attachment_data, 'tags': boto3_tag_list_to_ansible_dict(volume['tags']) if "tags" in volume else None } + if 'throughput' in volume: + volume_info['throughput'] = volume["throughput"] + return volume_info