pep8 check
This commit is contained in:
parent
0d3688208f
commit
d7427e9b38
@ -154,7 +154,7 @@ class AgentApi(object):
|
|||||||
iperf = iperf_driver.IPerfDriver()
|
iperf = iperf_driver.IPerfDriver()
|
||||||
try:
|
try:
|
||||||
data = iperf.start_client(host, protocol='TCP', timeout=5,
|
data = iperf.start_client(host, protocol='TCP', timeout=5,
|
||||||
parallel=None, bandwidth=None)
|
parallel=None, bandwidth=None)
|
||||||
data['server_ip'] = host
|
data['server_ip'] = host
|
||||||
return agent_utils.make_response(code=0, data=data)
|
return agent_utils.make_response(code=0, data=data)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
@ -80,6 +80,7 @@ def kill_process_by_id(pid):
|
|||||||
os.kill(pid, signal.SIGILL)
|
os.kill(pid, signal.SIGILL)
|
||||||
os.waitpid(pid, 0)
|
os.waitpid(pid, 0)
|
||||||
|
|
||||||
|
|
||||||
def get_interface(interface):
|
def get_interface(interface):
|
||||||
"""Support Centos standard physical interface,
|
"""Support Centos standard physical interface,
|
||||||
such as eth0.
|
such as eth0.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user