From 6ba701f4208c33f5c40e035f08a956deb7285432 Mon Sep 17 00:00:00 2001 From: jakekaplan <40362401+jakekaplan@users.noreply.github.com> Date: Thu, 30 Nov 2023 10:34:15 -0500 Subject: [PATCH] dont modify task run request (#347) --- prefect_aws/workers/ecs_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prefect_aws/workers/ecs_worker.py b/prefect_aws/workers/ecs_worker.py index afbe631b..c55e0f30 100644 --- a/prefect_aws/workers/ecs_worker.py +++ b/prefect_aws/workers/ecs_worker.py @@ -242,7 +242,7 @@ def mask_sensitive_env_values( def mask_api_key(task_run_request): return mask_sensitive_env_values( - task_run_request, ["PREFECT_API_KEY"], keep_length=6 + deepcopy(task_run_request), ["PREFECT_API_KEY"], keep_length=6 )