summaryrefslogtreecommitdiff
path: root/ironic_python_agent/cmd/agent.py
diff options
context:
space:
mode:
Diffstat (limited to 'ironic_python_agent/cmd/agent.py')
-rw-r--r--ironic_python_agent/cmd/agent.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ironic_python_agent/cmd/agent.py b/ironic_python_agent/cmd/agent.py
index 0761460e..318c3882 100644
--- a/ironic_python_agent/cmd/agent.py
+++ b/ironic_python_agent/cmd/agent.py
@@ -35,8 +35,10 @@ def run():
CONF.set_override('debug', ipa_debug)
log.setup(CONF, 'ironic-python-agent')
agent.IronicPythonAgent(CONF.api_url,
- (CONF.advertise_host, CONF.advertise_port),
- (CONF.listen_host, CONF.listen_port),
+ agent.Host(hostname=CONF.advertise_host,
+ port=CONF.advertise_port),
+ agent.Host(hostname=CONF.listen_host,
+ port=CONF.listen_port),
CONF.ip_lookup_attempts,
CONF.ip_lookup_sleep,
CONF.network_interface,