mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-25 14:50:24 +00:00
fix: 华为交换机执行某些命令报错
This commit is contained in:
@@ -127,7 +127,7 @@ class JMSInventory:
|
|||||||
|
|
||||||
if platform.is_huawei():
|
if platform.is_huawei():
|
||||||
host['ansible_connection'] = 'network_cli'
|
host['ansible_connection'] = 'network_cli'
|
||||||
host['ansible_network_os'] = 'asa'
|
host['ansible_network_os'] = 'ce'
|
||||||
|
|
||||||
if gateway:
|
if gateway:
|
||||||
ansible_connection = host.get('ansible_connection', 'ssh')
|
ansible_connection = host.get('ansible_connection', 'ssh')
|
||||||
|
Reference in New Issue
Block a user