1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

ec2_lc - cast volume_size for an EBS volume to an int (#32291)

This commit is contained in:
Joseph S. Tate 2017-10-30 14:41:40 -04:00 committed by Sloane Hertel
parent 75a6f9dbc2
commit 77061f5521

View file

@ -216,7 +216,7 @@ def create_block_device_meta(module, volume):
return_object['Ebs']['SnapshotId'] = volume.get('snapshot')
if 'volume_size' in volume:
return_object['Ebs']['VolumeSize'] = volume.get('volume_size')
return_object['Ebs']['VolumeSize'] = int(volume.get('volume_size', 0))
if 'volume_type' in volume:
return_object['Ebs']['VolumeType'] = volume.get('volume_type')