mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
Cast to int before comparing in ec2 validate_manifest()
This commit is contained in:
parent
7310129f4e
commit
7f84e405f0
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ def validate_manifest(data, validator, error):
|
||||||
for key, partition in data['volume']['partitions'].iteritems():
|
for key, partition in data['volume']['partitions'].iteritems():
|
||||||
if key != 'type':
|
if key != 'type':
|
||||||
volume_size += Bytes(partition['size'])
|
volume_size += Bytes(partition['size'])
|
||||||
if volume_size % Bytes('1GiB') != 0:
|
if int(volume_size % Bytes('1GiB')) != 0:
|
||||||
msg = ('The volume size must be a multiple of 1GiB when using EBS backing')
|
msg = ('The volume size must be a multiple of 1GiB when using EBS backing')
|
||||||
error(msg, ['volume', 'partitions'])
|
error(msg, ['volume', 'partitions'])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue