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:
Julien Danjou
2013-02-12 11:22:26 +01:00
parent 01f46b7a01
commit 9016692140
2 changed files with 2 additions and 0 deletions

View File

@@ -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__)