mirror of
https://github.com/docker/compose.git
synced 2025-07-24 06:04:57 +02:00
ServicePort merge_field should account for external IP and protocol
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
0bcfc721f8
commit
f3c1c8d158
@ -325,7 +325,7 @@ class ServicePort(namedtuple('_ServicePort', 'target published protocol mode ext
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def merge_field(self):
|
def merge_field(self):
|
||||||
return (self.target, self.published)
|
return (self.target, self.published, self.external_ip, self.protocol)
|
||||||
|
|
||||||
def repr(self):
|
def repr(self):
|
||||||
return dict(
|
return dict(
|
||||||
|
@ -1865,7 +1865,7 @@ class ConfigTest(unittest.TestCase):
|
|||||||
{
|
{
|
||||||
'target': '1245',
|
'target': '1245',
|
||||||
'published': '1245',
|
'published': '1245',
|
||||||
'protocol': 'tcp',
|
'protocol': 'udp',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user