Skip to content

Commit 79fb9c5

Browse files
hemalathagajendran“hemalathagajendran”
andauthored
adding previous parameter in csi snap (#1192)
Signed-off-by: “hemalathagajendran” <“[email protected]”> Co-authored-by: “hemalathagajendran” <“[email protected]”>
1 parent 58605dc commit 79fb9c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/storage-scale-driver-snap.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ function collect_csi_pod_logs()
121121
fi
122122
if [[ $previous != "False" ]]
123123
then
124-
echo "Gather data for pod/${opPodName} --previous "
125-
$klog pod/"${opPodName}" -c ${containerName} > "$csi_pod_logs"/"${opPodName}"/"${containerName}"/"${opPodName}"-"${containerName}"-previous.log 2>&1 || :
124+
echo "Gather data for pod/${opPodName} for container ${containerName} --previous "
125+
$klog pod/"${opPodName}" -c ${containerName} --previous > "$csi_pod_logs"/"${opPodName}"/"${containerName}"/"${opPodName}"-"${containerName}"-previous.log 2>&1 || :
126126
fi
127127
done
128128
done

0 commit comments

Comments
 (0)