Merge pull request from mjschultz/welex91

Ensure that port_path is split into at most 2 components.
This commit is contained in:
Brian Coca 2016-02-01 23:56:02 -05:00
commit 9aac5784d3

View file

@ -112,7 +112,7 @@ def get_elb_listeners(listeners):
def get_health_check(health_check):
protocol, port_path = health_check.target.split(':')
try:
port, path = port_path.split('/')
port, path = port_path.split('/', 1)
path = '/{}'.format(path)
except ValueError:
port = port_path