Browse Source

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

pull/13143/head
wangruidong 7 months ago committed by Bryan
parent
commit
5be399616b
  1. 2
      apps/ops/ansible/inventory.py

2
apps/ops/ansible/inventory.py

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

Loading…
Cancel
Save