Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Commit

Permalink
check pending products to support 2.2 API changes [#158467570]
Browse files Browse the repository at this point in the history
Signed-off-by: Huan Wang <[email protected]>
  • Loading branch information
JT Archie authored and fredwangwang committed Jun 19, 2018
1 parent 288b1bf commit b672e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/export-opsmgr-settings/task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function check_for_no_pending_changes() {
--client-secret "${OPSMAN_CLIENT_SECRET}" \
--username "${OPSMAN_USERNAME}" \
--password "${OPSMAN_PASSWORD}" \
curl -path /api/v0/staged/pending_changes | jq ".product_changes | length")
curl -path /api/v0/staged/pending_changes | jq '[ .product_changes[] | select(.action != "unchanged") ] | length')
if [[ $pending_changes_count -ne 0 ]]; then
echo "Detected $pending_changes_count pending changes. Aborting."
exit 1
Expand Down

0 comments on commit b672e96

Please sign in to comment.