From d66ea53e82e862e9660163541c2453e2e3bd104b Mon Sep 17 00:00:00 2001 From: john-griffith Date: Mon, 28 Jan 2013 20:28:14 -0700 Subject: [PATCH] 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 --- cinder/volume/drivers/solidfire.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} -- 2.45.2