Skip to content

Commit 810b4e1

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix eventlet.tpool import" into stable/xena
2 parents 3a5f892 + b57fce8 commit 810b4e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nova/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import tempfile
3030

3131
import eventlet
32+
from eventlet import tpool
3233
from keystoneauth1 import loading as ks_loading
3334
import netaddr
3435
from openstack import connection
@@ -684,7 +685,7 @@ def context_wrapper(*args, **kwargs):
684685

685686
def tpool_execute(func, *args, **kwargs):
686687
"""Run func in a native thread"""
687-
eventlet.tpool.execute(func, *args, **kwargs)
688+
tpool.execute(func, *args, **kwargs)
688689

689690

690691
def is_none_string(val):

0 commit comments

Comments
 (0)