Skip to content

Commit

Permalink
Ensure we force removing of an offer
Browse files Browse the repository at this point in the history
The following updates the test to ensure we force and accept any prompts
when attempting to remove an offer. This should ensure that any failures
on removing an offer can be at least, best attempt.
  • Loading branch information
SimonRichardson authored and mitechie committed Feb 10, 2020
1 parent 091e900 commit 710fd7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/includes/juju.sh
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ remove_controller_offers() {
OUT=$(juju offers -m "${name}:${model}" --format=json | jq -r ".[] | .[\"offer-url\"]" || true)
echo "${OUT}" | while read -r offer; do
if [ -n "${offer}" ]; then
juju remove-offer -c "${name}" "${offer}"
juju remove-offer --force -y -c "${name}" "${offer}"
echo "${offer}" >> "${TEST_DIR}/${name}-juju_removed_offers.txt"
fi
done
Expand Down

0 comments on commit 710fd7d

Please sign in to comment.