fix: 华为交换机执行某些命令报错

pull/13143/head
wangruidong 2024-04-26 18:57:02 +08:00 committed by Bryan
parent 46a23afbec
commit 5be399616b
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class JMSInventory:
if platform.is_huawei():
host['ansible_connection'] = 'network_cli'
host['ansible_network_os'] = 'asa'
host['ansible_network_os'] = 'ce'
if gateway:
ansible_connection = host.get('ansible_connection', 'ssh')