Workaround eventlet 0.17's broken monkeypatching

Change-Id: I6a4366f4203b91ce3a4e69fce308b993f447c31b
Partial-Bug: 1424621
This commit is contained in:
Kiall Mac Innes 2015-02-23 13:56:05 +00:00
parent 4e18e31f7f
commit 73657f89bc
1 changed files with 4 additions and 1 deletions

View File

@ -13,7 +13,7 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from dns import reversename
import eventlet.patcher
from oslo.config import cfg
from oslo_log import log as logging
@ -22,6 +22,9 @@ from designate.plugin import DriverPlugin
LOG = logging.getLogger(__name__)
# NOTE(kiall): This is a workaround for bug #1424621, a broken reimplementation
# of eventlet's 0.17.0 monkey patching of dnspython.
reversename = eventlet.patcher.original('dns.reversename')
class NetworkAPI(DriverPlugin):