usertools: fix flake8 compliance of telemetry script
Fix style errors reported by flake8. Fixes:6a2967c112
("usertools: add new telemetry script") Fixes:2d9a697e41
("usertools: add file-prefix option for telemetry") Cc: stable@dpdk.org Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Kevin Laatz <kevin.laatz@intel.com> Acked-by: Ciara Power <ciara.power@intel.com>
This commit is contained in:
parent
b8a0fbab98
commit
ea3ef0b85f
@ -9,7 +9,6 @@
|
||||
|
||||
import socket
|
||||
import os
|
||||
import glob
|
||||
import json
|
||||
import errno
|
||||
import readline
|
||||
@ -102,8 +101,8 @@ def get_dpdk_runtime_dir(fp):
|
||||
readline.set_completer_delims(readline.get_completer_delims().replace('/', ''))
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('-f', '--file-prefix', \
|
||||
help='Provide file-prefix for DPDK runtime directory', default='rte')
|
||||
parser.add_argument('-f', '--file-prefix', default='rte',
|
||||
help='Provide file-prefix for DPDK runtime directory')
|
||||
args = parser.parse_args()
|
||||
rdir = get_dpdk_runtime_dir(args.file_prefix)
|
||||
handle_socket(os.path.join(rdir, 'dpdk_telemetry.{}'.format(TELEMETRY_VERSION)))
|
||||
rd = get_dpdk_runtime_dir(args.file_prefix)
|
||||
handle_socket(os.path.join(rd, 'dpdk_telemetry.{}'.format(TELEMETRY_VERSION)))
|
||||
|
Loading…
Reference in New Issue
Block a user