Skip to content

Commit

Permalink
fix: fails backup on permissions error
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaferson committed Mar 11, 2020
1 parent 0d0fb63 commit 59b28a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion image/tools/lib/component/enmasse_pv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ function component_dump_data {
fi
local archive_path="$1/archives"
local dump_dest="/tmp/enmasse-data"
local pods=$(get_broker_pods)
local pods=$(get_broker_pods 2>&1)

if [[ "$pods" == *"Error from server"* ]]; then
echo ${pods}
exit 1
fi

if [ "${#pods}" -eq "0" ]; then
timestamp_echo "No broker pods found to backup"
Expand Down

0 comments on commit 59b28a6

Please sign in to comment.