mirror of https://github.com/docker/compose.git
ServicePort merge_field should account for external IP and protocol
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
cfe152f907
commit
5c3d0db3f2
|
@ -325,7 +325,7 @@ class ServicePort(namedtuple('_ServicePort', 'target published protocol mode ext
|
|||
|
||||
@property
|
||||
def merge_field(self):
|
||||
return (self.target, self.published)
|
||||
return (self.target, self.published, self.external_ip, self.protocol)
|
||||
|
||||
def repr(self):
|
||||
return dict(
|
||||
|
|
|
@ -1865,7 +1865,7 @@ class ConfigTest(unittest.TestCase):
|
|||
{
|
||||
'target': '1245',
|
||||
'published': '1245',
|
||||
'protocol': 'tcp',
|
||||
'protocol': 'udp',
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue