mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 00:33:09 +00:00
ec2_lc - cast volume_size for an EBS volume to an int (#32291)
This commit is contained in:
committed by
Sloane Hertel
parent
75a6f9dbc2
commit
77061f5521
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user