Browse Source

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

changes/77/762677/1
Zuul 3 months ago
committed by Gerrit Code Review
parent
commit
747bf1c453
2 changed files with 9 additions and 0 deletions
  1. +3
    -0
      octavia/common/base_taskflow.py
  2. +6
    -0
      releasenotes/notes/fix-python2-attributeerror-strptime-89a7350c55ac8818.yaml

+ 3
- 0
octavia/common/base_taskflow.py View File

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


+ 6
- 0
releasenotes/notes/fix-python2-attributeerror-strptime-89a7350c55ac8818.yaml 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.

Loading…
Cancel
Save