Skip to content

Commit

Permalink
Improve CodeReady pod filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
matskiv committed Dec 23, 2019
1 parent c68b95d commit a54eeb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image/tools/lib/component/codeready_pv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function component_dump_data {
if [[ -z "${PRODUCT_NAMESPACE:-}" ]]; then
PRODUCT_NAMESPACE="${PRODUCT_NAMESPACE_PREFIX}codeready"
fi
local pods="$(oc get pods -n ${PRODUCT_NAMESPACE} | grep workspace | awk '{print $1}')"
local pods="$(oc get pods -n ${PRODUCT_NAMESPACE} --no-headers=true -l "che.workspace_id" | awk '{print $1}')"
if [ "${#pods}" -eq "0" ]; then
echo "=>> No workspaces found to backup"
exit 0
Expand Down

0 comments on commit a54eeb7

Please sign in to comment.