mirror of https://github.com/jumpserver/jumpserver
				
				
				
			fix: 华为交换机执行某些命令报错
							parent
							
								
									46a23afbec
								
							
						
					
					
						commit
						5be399616b
					
				| 
						 | 
				
			
			@ -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…
	
		Reference in New Issue