Fix undefined variable (#228)

selenium-screenshot-testing
mschwager 2017-03-10 11:19:27 -05:00 committed by Kevin Chung
parent 15171f1140
commit 7cbbeb0843
1 changed files with 1 additions and 1 deletions

View File

@ -591,7 +591,7 @@ def container_ports(name, verbose=False):
ports = info[0]['Config']['ExposedPorts'].keys()
if not ports:
return []
ports = [int(re.sub('[A-Za-z/]+', '', port)) for port in ports_asked]
ports = [int(re.sub('[A-Za-z/]+', '', port)) for port in ports]
return ports
except subprocess.CalledProcessError:
return []