From: Sean McGinnis Date: Sat, 5 Dec 2015 18:19:52 +0000 (-0600) Subject: Fix StrOpts with integer defaults X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=03363ae6dd8adbf78229fc1b294c76f001adc9d8;p=openstack-build%2Fcinder-build.git Fix StrOpts with integer defaults 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 --- diff --git a/cinder/volume/drivers/nexenta/nexentaedge/iscsi.py b/cinder/volume/drivers/nexenta/nexentaedge/iscsi.py index 6bf4c6707..849262557 100644 --- a/cinder/volume/drivers/nexenta/nexentaedge/iscsi.py +++ b/cinder/volume/drivers/nexenta/nexentaedge/iscsi.py @@ -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') ]