Merge "Remove backward compatibility code for agent url"

This commit is contained in:
Jenkins 2016-05-30 13:07:56 +00:00 committed by Gerrit Code Review
commit 8a7f4dfcb5
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
}