Merge "Fix python2 AttributeError with strptime" into stable/train

This commit is contained in:
Zuul 2020-10-22 13:35:21 +00:00 committed by Gerrit Code Review
commit 747bf1c453
2 changed files with 9 additions and 0 deletions

View File

@ -16,6 +16,9 @@
import concurrent.futures import concurrent.futures
import datetime import datetime
# work around for https://bugs.python.org/issue7980
import _strptime # noqa: F401 pylint: disable=unused-import
from oslo_config import cfg from oslo_config import cfg
from taskflow import engines as tf_engines from taskflow import engines as tf_engines

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fix a potential AttributeError exception at init time in the housekeeping
service when using python2 because of an issue with thread safety when
calling strptime for the first time.