Each driver currently registers its own config options in the
constructor. This is not a good thing and has caused things like
`dynamic_conf` to happen.
This patch adds a method that is called in the constructor of the base
class that goes through the driver's options and registers them. The
method catches duplicated exceptions. We don't care about those for now
and we assume the driver consumer knows what it's doing.
Reviewed: https:/ /review. openstack. org/123720 /git.openstack. org/cgit/ openstack/ zaqar/commit/ ?id=6e502137f13 d7b2a2e056dfe90 a118eb2680ea24
Committed: https:/
Submitter: Jenkins
Branch: master
commit 6e502137f13d7b2 a2e056dfe90a118 eb2680ea24
Author: Flavio Percoco <email address hidden>
Date: Wed Sep 24 13:22:19 2014 +0200
Don't register options in __init__
Each driver currently registers its own config options in the
constructor. This is not a good thing and has caused things like
`dynamic_conf` to happen.
This patch adds a method that is called in the constructor of the base
class that goes through the driver's options and registers them. The
method catches duplicated exceptions. We don't care about those for now
and we assume the driver consumer knows what it's doing.
Bug: #1372335 20e428308f463d1 bb635927a5d
Change-Id: I3341416332a0e6