usertools: replace unsafe input function
authorAndrius Sirvys <andrius.sirvys@intel.com>
Mon, 8 Apr 2019 13:54:41 +0000 (14:54 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 30 Jul 2019 22:22:33 +0000 (00:22 +0200)
commit53f293c9a7833747d90b90bf33d12fe1d4f8ef1e
treef03c00b944e6dd6d084f440c5a90d4950258abe1
parent2804529fe077f3d019fcd27cb69be6fd0e4e190b
usertools: replace unsafe input function

LGTM static code analysis tool reports that the function 'input' is
unsafe. Changed to use raw_input which then converts it using
ast.literal_eval() which is safe.

Fixes: d1b94da4a4e0 ("usertools: add client script for telemetry")
Cc: stable@dpdk.org
Signed-off-by: Andrius Sirvys <andrius.sirvys@intel.com>
Acked-by: Kevin Laatz <kevin.laatz@intel.com>
usertools/dpdk-telemetry-client.py