From dfbe8c0bc4fda3ea793329a37079d98188b8764d Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Thu, 9 Mar 2023 13:59:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=9B=E5=BB=BA=E8=B5=84=E4=BA=A7=20?= =?UTF-8?q?=E5=8F=AF=E8=BF=9E=E6=8E=A5=E6=80=A7=E4=B8=BA=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=20(#9905)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: feng <1304903146@qq.com> --- apps/assets/automations/gather_facts/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/assets/automations/gather_facts/manager.py b/apps/assets/automations/gather_facts/manager.py index 07b432379..afd5ce523 100644 --- a/apps/assets/automations/gather_facts/manager.py +++ b/apps/assets/automations/gather_facts/manager.py @@ -30,6 +30,6 @@ class GatherFactsManager(BasePlaybookManager): if asset and info: info = self.format_asset_info(asset.type, info) asset.info = info - asset.save() + asset.save(update_fields=['info']) else: logger.error("Not found info: {}".format(host))