Move _get_agent_params() to a common place

The function _get_agent_params() parse the parameters passed to the agent
via kernel cmdline or vmedia. Other parts of the code needs to access
these parameters as well, so this patch is moving _get_agent_params()
and the related functions to a common place (utils.py).

Change-Id: I860f84d1d13511fff56d4aa56358ee597a9760d5
This commit is contained in:
Lucas Alvares Gomes
2015-03-09 12:23:12 +00:00
parent e09cd11fe1
commit c6cd3a8190
5 changed files with 256 additions and 252 deletions

@ -22,6 +22,11 @@ import sys
from oslo_config import cfg
# 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