pep8 check

This commit is contained in:
yaowei 2016-01-15 02:06:57 +08:00
parent 0d3688208f
commit d7427e9b38
2 changed files with 2 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class AgentApi(object):
iperf = iperf_driver.IPerfDriver()
try:
data = iperf.start_client(host, protocol='TCP', timeout=5,
parallel=None, bandwidth=None)
parallel=None, bandwidth=None)
data['server_ip'] = host
return agent_utils.make_response(code=0, data=data)
except Exception as e:

View File

@ -80,6 +80,7 @@ def kill_process_by_id(pid):
os.kill(pid, signal.SIGILL)
os.waitpid(pid, 0)
def get_interface(interface):
"""Support Centos standard physical interface,
such as eth0.