From c6cd3a8190332b4b778e6ac63b2985eee72135e9 Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Mon, 9 Mar 2015 12:23:12 +0000 Subject: 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 --- ironic_python_agent/netutils.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ironic_python_agent/netutils.py') 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 -- cgit v1.2.1