e35a6e7c73
Put jenkins_master into jenkins::master and jenkins_job_builder into jenkins::job_builder and jenkins_slave into jenkins::slave. Change-Id: Icb0e3071894730c17d8f36f49e9d34979d9c568e Reviewed-on: https://review.openstack.org/11249 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)
|