From a9df4246d0e2a687d033e605fa4c6e749654a613 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Tue, 2 Mar 2021 17:33:22 -0800 Subject: [PATCH] cleaned up --- .../src/azure_devtools/scenario_tests/recording_processors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/azure-devtools/src/azure_devtools/scenario_tests/recording_processors.py b/tools/azure-devtools/src/azure_devtools/scenario_tests/recording_processors.py index 3e9c3cb29162..711799e0bf32 100644 --- a/tools/azure-devtools/src/azure_devtools/scenario_tests/recording_processors.py +++ b/tools/azure-devtools/src/azure_devtools/scenario_tests/recording_processors.py @@ -200,8 +200,8 @@ def process_request(self, request): body = six.ensure_str(request.body) matched_objects = set(re.findall(old, body)) for matched_object in matched_objects: - request.body = body.replace(matched_object, new) - body = body.replace(matched_object, new) + new_body = body.replace(matched_object, new) + request.body = new_body return request def process_response(self, response):