fix: 创建资产 可连接性为更新 (#9905)

Co-authored-by: feng <1304903146@qq.com>
pull/9910/head
fit2bot 2023-03-09 13:59:44 +08:00 committed by GitHub
parent 3de2992238
commit dfbe8c0bc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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))