Comment 2 for bug 1617240

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

Reviewed: https://review.openstack.org/361058
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=32c13d00fe23161340e87aa38933475b3571c68f
Submitter: Jenkins
Branch: master

commit 32c13d00fe23161340e87aa38933475b3571c68f
Author: David TARDIVEL <email address hidden>
Date: Fri Aug 26 12:08:45 2016 +0200

    Fix loading of plugin configuration parameters

    When the load a plugin, we need to reload once the watcher
    configuration data, in order to include the plugin parameters in
    cfg.CONF data dict. To reload the conf, we just call self.conf().
    But every time we call this method, cfg.CONF is cleaned, and we
    lost previously loaded parameters. This generated the exception
    RequiredOptError and the plugin was not correctly loaded.

    To fix it, we have just to add the watcher configuration
    filename as argument of self.conf().

    Change-Id: Ic2384b68f6d604640127fe06893d0f808aee34b7
    Closes-Bug: #1617240