Merge "Remove hosts as property in TransportURL"

This commit is contained in:
Jenkins 2013-11-14 14:47:45 +00:00 committed by Gerrit Code Review
commit 2414524c6e

View File

@ -227,9 +227,10 @@ class TransportURL(object):
self.conf.register_opts(_transport_opts)
self._transport = transport
self.virtual_host = virtual_host
self._hosts = hosts
if self._hosts is None:
self._hosts = []
if hosts is None:
self.hosts = []
else:
self.hosts = hosts
@property
def transport(self):
@ -242,10 +243,6 @@ class TransportURL(object):
def transport(self, value):
self._transport = value
@property
def hosts(self):
return self._hosts
def __eq__(self, other):
return (self.transport == other.transport and
self.virtual_host == other.virtual_host and