Skip to content

Commit

Permalink
Fix global name 'sleep' is not defined in wsgi.py. Fixes bug #888215.
Browse files Browse the repository at this point in the history
Change-Id: I02a43dfaf3cb0505e14b7f942bb64f3e94dbf4fa
  • Loading branch information
Dan Prince committed Nov 9, 2011
1 parent c8de988 commit f6d8437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glance/common/wsgi.py
Expand Up @@ -92,7 +92,7 @@ def get_socket(host, port, conf):
except socket.error, err:
if err.args[0] != errno.EADDRINUSE:
raise
sleep(0.1)
eventlet.sleep(0.1)
if not sock:
raise RuntimeError(_("Could not bind to %s:%s after trying for 30 "
"seconds") % bind_addr)
Expand Down

0 comments on commit f6d8437

Please sign in to comment.