Kaydet (Commit) 7fae65b7 authored tarafından Scott Sanderson's avatar Scott Sanderson

MAINT: Don't re-index multiple times.

üst 851f2b82
......@@ -708,9 +708,9 @@ class Client(requests.Session):
if port_settings is None:
return None
h_ports = json_['NetworkSettings']['Ports'].get(s_port + '/udp')
h_ports = port_settings.get(s_port + '/udp')
if h_ports is None:
h_ports = json_['NetworkSettings']['Ports'].get(s_port + '/tcp')
h_ports = port_settings.get(s_port + '/tcp')
return h_ports
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment