Consolidate IPA configuration into a config module

This patch moves the IPA oslo configs out of the agent cmd into their
own module so that it is safe to import them from other places in the
application without causing circular imports.

Change-Id: I100792bd0d1f369763afaa6f93e144e9967c3048
This commit is contained in:
Sam Betts
2016-05-25 10:38:45 +01:00
parent 01d49886ac
commit 95e1e4e35a
4 changed files with 138 additions and 122 deletions
ironic_python_agent

@ -22,11 +22,6 @@ import sys
from oslo_config import cfg
from oslo_log import log as logging
# FIXME(lucasagomes): If you don't import the agent module the tests in
# this file will fail, it was working before because the agent module was
# being imported at tests/agent.py
from ironic_python_agent.cmd import agent # noqa
LOG = logging.getLogger(__name__)
CONF = cfg.CONF