Direktori : /opt/saltstack/salt/extras-3.10/pyroute2/ipdb/ |
Current File : //opt/saltstack/salt/extras-3.10/pyroute2/ipdb/utils.py |
import os import subprocess def test_reachable_icmp(host): with open(os.devnull, 'w') as devnull: return subprocess.check_call( ['ping', '-c', '1', host], stdout=devnull, stderr=devnull )