]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix StrOpts with integer defaults
authorSean McGinnis <sean_mcginnis@dell.com>
Sat, 5 Dec 2015 18:19:52 +0000 (12:19 -0600)
committerSean McGinnis <sean_mcginnis@dell.com>
Sat, 5 Dec 2015 18:21:53 +0000 (12:21 -0600)
A couple config options sneaked in defined as strings but
really expecting integer values. This causes errors with the
latest oslo.config that expects the appropriate type.

This patch changes these instances to be the expected IntOpt.

Change-Id: I449c1f0057d6f4afabfb8b71040427dbcb0ca4ee

cinder/volume/drivers/nexenta/nexentaedge/iscsi.py

index 6bf4c670799d3e80f1fcbb3657bb75d421e60991..8492625572783d119b6364e17ab60031daadecfe 100644 (file)
@@ -56,10 +56,10 @@ nexenta_edge_opts = [
                default='',
                help='NexentaEdge iSCSI Gateway client '
                'address for non-VIP service'),
-    cfg.StrOpt('nexenta_blocksize',
+    cfg.IntOpt('nexenta_blocksize',
                default=4096,
                help='NexentaEdge iSCSI LUN block size'),
-    cfg.StrOpt('nexenta_chunksize',
+    cfg.IntOpt('nexenta_chunksize',
                default=16384,
                help='NexentaEdge iSCSI LUN object chunk size')
 ]