mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 06:46:24 +00:00
perf: asset gather fact (#9511)
Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
@@ -23,6 +23,8 @@ class GatherFactsManager(BasePlaybookManager):
|
||||
info = result.get('debug', {}).get('res', {}).get('info', {})
|
||||
asset = self.host_asset_mapper.get(host)
|
||||
if asset and info:
|
||||
for k, v in info.items():
|
||||
info[k] = v.strip()
|
||||
asset.info = info
|
||||
asset.save()
|
||||
else:
|
||||
|
Reference in New Issue
Block a user