Skip to content

Commit

Permalink
remove 'pod/' prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
iychoi committed Sep 22, 2023
1 parent ba3e498 commit 52d306f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/dump_logs/dump_irodscsidriver_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ def get_kube_controller_pods(kubeconf=""):
pipe = os.popen(kubecommand)
for line in pipe:
podname = line.strip()
if podname.startswith("pod/"):
podname = podname[4:]

kubepods.append(podname)

return kubepods
Expand All @@ -35,6 +38,9 @@ def get_kube_node_pods(kubeconf=""):
pipe = os.popen(kubecommand)
for line in pipe:
podname = line.strip()
if podname.startswith("pod/"):
podname = podname[4:]

kubepods.append(podname)

return kubepods
Expand Down

0 comments on commit 52d306f

Please sign in to comment.