Merge "Replaces uuid.uuid4 with uuidutils.generate_uuid()"
This commit is contained in:
commit
e303b99f20
|
@ -13,7 +13,7 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import uuid
|
||||
from oslo_utils import uuidutils
|
||||
|
||||
from oslo_middleware import base
|
||||
|
||||
|
@ -23,5 +23,5 @@ class CorrelationId(base.ConfigurableMiddleware):
|
|||
|
||||
def process_request(self, req):
|
||||
correlation_id = (req.headers.get("X_CORRELATION_ID") or
|
||||
str(uuid.uuid4()))
|
||||
uuidutils.generate_uuid())
|
||||
req.headers['X_CORRELATION_ID'] = correlation_id
|
||||
|
|
Loading…
Reference in New Issue