Comment 4 for bug 1372335

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to zaqar (master)

Reviewed: https://review.openstack.org/123720
Committed: https://git.openstack.org/cgit/openstack/zaqar/commit/?id=6e502137f13d7b2a2e056dfe90a118eb2680ea24
Submitter: Jenkins
Branch: master

commit 6e502137f13d7b2a2e056dfe90a118eb2680ea24
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
    Change-Id: I3341416332a0e620e428308f463d1bb635927a5d