From 94d53dc596f778edf2883f82b60d83784d9953d9 Mon Sep 17 00:00:00 2001 From: Nguyen Hai Date: Sat, 7 Apr 2018 13:55:53 +0900 Subject: [PATCH] Switched to pyroute2.config.asyncio.asyncio_config To monkey patch socket module for pyroute2, we call eventlet_config. In recent releases of the library, this becomes deprecated. Instead, we should now use asyncio_config() to patch stdlib. When building module index for tacker docs, it creates a warning, treated as error: Please use pyroute2.config.asyncio.asyncio_config Closes-Bug: #1761925 Change-Id: I8f21cfa02e1201f4968ec0ce1fb6865ef591678d --- tacker/common/eventlet_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tacker/common/eventlet_utils.py b/tacker/common/eventlet_utils.py index ff9a50907..1443d4b4e 100644 --- a/tacker/common/eventlet_utils.py +++ b/tacker/common/eventlet_utils.py @@ -22,5 +22,5 @@ from oslo_utils import importutils def monkey_patch(): eventlet.monkey_patch(all=False, socket=True) if os.name != 'nt': - p_c_e = importutils.import_module('pyroute2.config.eventlet') - p_c_e.eventlet_config() + p_c_e = importutils.import_module('pyroute2.config.asyncio') + p_c_e.asyncio_config()