util: fix tracevol.py to use namespace argument

tracevol.py accepts namespace argument but doesn't use it currently, fixing the same.

Signed-off-by: Mudit Agarwal <muagarwa@redhat.com>
This commit is contained in:
Mudit Agarwal 2020-07-28 19:44:04 +05:30 committed by mergify[bot]
parent 74ba85f87b
commit b2c9c589aa

View File

@ -86,6 +86,7 @@ def list_pvc_vol_name_mapping(arg):
cmd += ["--config", arg.kubeconfig]
else:
cmd += ["--kubeconfig", arg.kubeconfig]
cmd += ["--namespace", arg.namespace]
if arg.pvcname != "":
cmd += ['get', 'pvc', arg.pvcname, '-o', 'json']
# list all pvc and get mapping