Remove backward compatibility code for agent url

Change-Id: Id4dc87850412fa28e4e7127ac5ace1b19d081450
This commit is contained in:
Yuriy Zveryanskyy
2016-05-27 10:36:56 +03:00
parent 51bb801820
commit 5a51d17ba9
2 changed files with 0 additions and 6 deletions

View File

@@ -41,10 +41,6 @@ class AgentClient(object):
def _get_command_url(self, node):
agent_url = node.driver_internal_info.get('agent_url')
if not agent_url:
# (lintan) Keep backwards compatible with booted nodes before this
# change. Remove this after Kilo.
agent_url = node.driver_info.get('agent_url')
if not agent_url:
raise exception.IronicException(_('Agent driver requires '
'agent_url in '

View File

@@ -38,7 +38,6 @@ class MockResponse(object):
class MockNode(object):
def __init__(self):
self.uuid = 'uuid'
self.driver_info = {}
self.driver_internal_info = {
'agent_url': "http://127.0.0.1:9999",
'clean_version': {'generic': '1'}
@@ -48,7 +47,6 @@ class MockNode(object):
def as_dict(self):
return {
'uuid': self.uuid,
'driver_info': self.driver_info,
'driver_internal_info': self.driver_internal_info,
'instance_info': self.instance_info
}