Skip to content

Commit

Permalink
conditionnal attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
abikouo committed May 26, 2021
1 parent 836fa99 commit ae487ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/modules/ec2_vol_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit ae487ce

Please sign in to comment.