Skip to content

Commit

Permalink
Merge pull request #55 from jjaferson/master
Browse files Browse the repository at this point in the history
fix: fails backup on permissions error
  • Loading branch information
sergioifg94 committed Mar 13, 2020
2 parents 0d0fb63 + 59b28a6 commit 7064bbf
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 7064bbf

Please sign in to comment.