
This reverts commit 222f983fabfbf05f8aa074af90d60d7587acddfa Change-Id: Iebc5744c5342a19aafdf24ea64e0b98812464ef4 Reviewed-on: https://review.openstack.org/11247 Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
12 lines
238 B
Python
Executable File
12 lines
238 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import sys
|
|
from subprocess import Popen, PIPE
|
|
|
|
p = Popen(["ping", sys.argv[1]], stdout=PIPE)
|
|
while True:
|
|
line = p.stdout.readline().strip()
|
|
if 'bytes from' in line:
|
|
p.terminate()
|
|
sys.exit(0)
|