mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
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:
parent
74ba85f87b
commit
b2c9c589aa
@ -86,6 +86,7 @@ def list_pvc_vol_name_mapping(arg):
|
|||||||
cmd += ["--config", arg.kubeconfig]
|
cmd += ["--config", arg.kubeconfig]
|
||||||
else:
|
else:
|
||||||
cmd += ["--kubeconfig", arg.kubeconfig]
|
cmd += ["--kubeconfig", arg.kubeconfig]
|
||||||
|
cmd += ["--namespace", arg.namespace]
|
||||||
if arg.pvcname != "":
|
if arg.pvcname != "":
|
||||||
cmd += ['get', 'pvc', arg.pvcname, '-o', 'json']
|
cmd += ['get', 'pvc', arg.pvcname, '-o', 'json']
|
||||||
# list all pvc and get mapping
|
# list all pvc and get mapping
|
||||||
|
Loading…
Reference in New Issue
Block a user