From: john-griffith Date: Tue, 29 Jan 2013 03:28:14 +0000 (-0700) Subject: Wrap SolidFire size parameter in int. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=d66ea53e82e862e9660163541c2453e2e3bd104b;p=openstack-build%2Fcinder-build.git Wrap SolidFire size parameter in int. SolidFire API requires that volume size is specified as an int value, ensure an int is provided by wrapping in int() Change-Id: If251ce2a7095f32aa2a59bb6cc767a4136c5f88c --- diff --git a/cinder/volume/drivers/solidfire.py b/cinder/volume/drivers/solidfire.py index 96725b821..a1f042507 100644 --- a/cinder/volume/drivers/solidfire.py +++ b/cinder/volume/drivers/solidfire.py @@ -405,7 +405,7 @@ class SolidFire(SanISCSIDriver): params = {'name': 'UUID-%s' % volume['id'], 'accountID': None, 'sliceCount': slice_count, - 'totalSize': volume['size'] * self.GB, + 'totalSize': int(volume['size'] * self.GB), 'enable512e': FLAGS.sf_emulate_512, 'attributes': attributes, 'qos': qos}