Fixes size numeric comparison in extend_volumes
A comparison between strings instead on numeric types prevented WSMStorageManager.extend_volumes() to behave as expected. Closes-Bug: #1520724 Change-Id: I4f4b2685a62b9007cac2a57f0d20dc86102caee6
This commit is contained in:
parent
8654c7b771
commit
b542bf20e2
@ -41,7 +41,7 @@ class WSMStorageManager(base.BaseStorageManager):
|
||||
raise exception.CloudbaseInitException(
|
||||
"GetSupportedSize failed with error: %s" % ret_val)
|
||||
|
||||
if size_max > partition.Size:
|
||||
if int(size_max) > int(partition.Size):
|
||||
LOG.info('Extending partition "%(partition_number)s" '
|
||||
'to %(size)s bytes' %
|
||||
{'partition_number': partition.PartitionNumber,
|
||||
|
Loading…
x
Reference in New Issue
Block a user