Skip to content

Commit

Permalink
ec2_lc - cast volume_size for an EBS volume to an int (#32291)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephtate authored and s-hertel committed Oct 30, 2017
1 parent 75a6f9d commit 77061f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/amazon/ec2_lc.py
Expand Up @@ -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')
Expand Down

0 comments on commit 77061f5

Please sign in to comment.