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:
ironic_python_agent
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user