]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove extra register_opts() calls in netapp eseries
authorJay S Bryant <jsbryant@us.ibm.com>
Tue, 6 Oct 2015 09:03:53 +0000 (04:03 -0500)
committerKendall Nelson <kjnelson@us.ibm.com>
Wed, 7 Oct 2015 20:10:52 +0000 (15:10 -0500)
The eseries/library.py file is importing netapp's
options file. The options file already registers
all of the configuration options. For some reason
the library.py file was re-registering the options
and also properly appending them to the configuration list.

This patch removes the extra register_opts() calls.

Change-Id: Id48fe85acb42c10dc9d13a7fca3f49eec9ea8ce3
closes-bug: 1503405

cinder/volume/drivers/netapp/eseries/library.py

index 323af2d6c810f18d006384acac9ae613fa61ca1d..2c90a5bdae0192d522c73497b838fab04841966b 100644 (file)
@@ -48,11 +48,6 @@ from cinder.zonemanager import utils as fczm_utils
 LOG = logging.getLogger(__name__)
 
 CONF = cfg.CONF
-CONF.register_opts(na_opts.netapp_basicauth_opts)
-CONF.register_opts(na_opts.netapp_connection_opts)
-CONF.register_opts(na_opts.netapp_eseries_opts)
-CONF.register_opts(na_opts.netapp_transport_opts)
-CONF.register_opts(na_opts.netapp_san_opts)
 
 
 @six.add_metaclass(cinder_utils.TraceWrapperMetaclass)