diff options
| author | Lucas Alvares Gomes <lucasagomes@gmail.com> | 2015-03-09 12:23:12 +0000 |
|---|---|---|
| committer | Lucas Alvares Gomes <lucasagomes@gmail.com> | 2015-03-10 17:43:17 +0000 |
| commit | c6cd3a8190332b4b778e6ac63b2985eee72135e9 (patch) | |
| tree | 885d23368195a8bc19b24c7c92ef3bfe978d6563 /ironic_python_agent/netutils.py | |
| parent | e09cd11fe1e4d769caf02fc614f72a20df10ea22 (diff) | |
| download | ironic-python-agent-c6cd3a8190332b4b778e6ac63b2985eee72135e9.tar.gz | |
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
Diffstat (limited to 'ironic_python_agent/netutils.py')
| -rw-r--r-- | ironic_python_agent/netutils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ironic_python_agent/netutils.py b/ironic_python_agent/netutils.py index 299b474b..8b005eba 100644 --- a/ironic_python_agent/netutils.py +++ b/ironic_python_agent/netutils.py @@ -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 |
