![K Jonathan Harker](/assets/img/avatar_default.png)
The ::jenkins::slave class contained a lot of openstack-specific configuration rather than configuration of a generic jenkins slave. The term "bare slave" is overloaded and confusing: create simple_slave and thick_slave to differentiate between the two meanings of "bare". Some portions of ::jenkins::slave will move to simple_slave, some portions to thick_slave, and some portions to slave_common (all in the openstack_project module). Change-Id: I5281a03a7f6da3f98714bcc59ae840ace8435578
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)
|