ServicePort merge_field should account for external IP and protocol

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2017-06-09 16:58:24 -07:00 committed by Joffrey F
parent cfe152f907
commit 5c3d0db3f2
2 changed files with 2 additions and 2 deletions

View File

@ -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(

View File

@ -1865,7 +1865,7 @@ class ConfigTest(unittest.TestCase):
{
'target': '1245',
'published': '1245',
'protocol': 'tcp',
'protocol': 'udp',
}
]
}