From ee3cdcd9e48a0edbb054724675bf1d55a42e3fa1 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Wed, 5 Jul 2023 14:28:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=89=E9=BB=98=E8=AE=A4=E5=80=BC=20r?= =?UTF-8?q?equired=20=E4=B8=BAfalse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/automations/base/manager.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/assets/automations/base/manager.py b/apps/assets/automations/base/manager.py index b0215710a..aa31c886f 100644 --- a/apps/assets/automations/base/manager.py +++ b/apps/assets/automations/base/manager.py @@ -55,13 +55,8 @@ class BasePlaybookManager: return {} data = self.params.get(method_id) - default_data = serializer().data if not data: - data = automation_params.get(method_id, default_data) - - for k, v in default_data.items(): - data.setdefault(k, v) - + data = automation_params.get(method_id, {}) params = serializer(data).data return { field_name: automation_params.get(field_name, '')