mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-13 13:59:17 +00:00
perf: 优化 HUAWEI 设备判断逻辑
This commit is contained in:
@@ -125,7 +125,7 @@ class JMSInventory:
|
||||
else:
|
||||
host.update(self.make_account_ansible_vars(account, path_dir))
|
||||
|
||||
if "huawei" in platform.name.lower() and platform.category == Category.DEVICE.value:
|
||||
if platform.is_huawei():
|
||||
host['ansible_connection'] = 'network_cli'
|
||||
host['ansible_network_os'] = 'asa'
|
||||
|
||||
|
Reference in New Issue
Block a user