]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Wrap SolidFire size parameter in int.
authorjohn-griffith <john.griffith@solidfire.com>
Tue, 29 Jan 2013 03:28:14 +0000 (20:28 -0700)
committerjohn-griffith <john.griffith@solidfire.com>
Tue, 29 Jan 2013 03:31:35 +0000 (20:31 -0700)
SolidFire API requires that volume size is specified as
an int value, ensure an int is provided by wrapping in int()

Change-Id: If251ce2a7095f32aa2a59bb6cc767a4136c5f88c

cinder/volume/drivers/solidfire.py

index 96725b82195509a32d9c9e73716661d84a3038f5..a1f042507b2a8f56caf7fc24deb1e671b5372786 100644 (file)
@@ -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}