Remove timeout parameter in ping6 request
This commit is contained in:
		
					parent
					
						
							
								e66e8202db
							
						
					
				
			
			
				commit
				
					
						432b54a86d
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -141,7 +141,7 @@ def ping_ok(host_ipv6):
 | 
				
			||||||
    :return True if the host responds to ping else returns False
 | 
					    :return True if the host responds to ping else returns False
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
    try:
 | 
					    try:
 | 
				
			||||||
        subprocess.check_output("ping6 -c 1 -w 2 " + host_ipv6, shell=True)
 | 
					        subprocess.check_output("ping6 -c 1 " + host_ipv6, shell=True)
 | 
				
			||||||
    except Exception as ex:
 | 
					    except Exception as ex:
 | 
				
			||||||
        logger.debug(host_ipv6 + " not reachable via ping. Error = " + str(ex))
 | 
					        logger.debug(host_ipv6 + " not reachable via ping. Error = " + str(ex))
 | 
				
			||||||
        return False
 | 
					        return False
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue