From 03363ae6dd8adbf78229fc1b294c76f001adc9d8 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Sat, 5 Dec 2015 12:19:52 -0600 Subject: [PATCH] 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 --- cinder/volume/drivers/nexenta/nexentaedge/iscsi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') ] -- 2.45.2