Skip to content

Commit 3b4b609

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix eventlet.tpool import" into stable/yoga
2 parents 15b7271 + a9f444a commit 3b4b609

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
@@ -685,7 +686,7 @@ def context_wrapper(*args, **kwargs):
685686

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

690691

691692
def is_none_string(val):

0 commit comments

Comments
 (0)