Import service when cfg.CONF.os_* is used
This doesn't look like it fixes something, but it actually does when you try to run some unit test independently without loading the whole suite, some of them fails because these cfg.CONF variables are not accessible. Change-Id: Iaac74ec5d414de4e4b1d0c7d200ad6d4d3208a42 Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
01f46b7a01
commit
9016692140
@ -21,6 +21,7 @@ from keystoneclient.v2_0 import client as ksclient
|
||||
from ceilometer import agent
|
||||
from ceilometer import extension_manager
|
||||
from ceilometer.openstack.common import cfg
|
||||
from ceilometer import service # For cfg.CONF.os_*
|
||||
|
||||
OPTS = [
|
||||
cfg.ListOpt('disabled_central_pollsters',
|
||||
|
@ -18,6 +18,7 @@ from functools import wraps
|
||||
from novaclient.v1_1 import client as nova_client
|
||||
|
||||
from ceilometer.openstack.common import cfg, log
|
||||
from ceilometer import service # For cfg.CONF.os_*
|
||||
|
||||
LOG = log.getLogger(__name__)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user