The pipelines often use
om command-line utility to communicate with Ops Manager. It is a common to see the arguments formatted in certain ways. However, newer versions of
om command-line utility comes with a limitation.
Recent changes in
om command-line utility in version 0.39.0 and above causes this issue.
The change is listed in the
Release Notes:
- Add
--format
to specific commands that use it and remove global --format
flag (breaking change)
The
om command below fails silently:
om \
--target "https://${OPSMAN_DOMAIN_OR_IP_ADDRESS}" \
--skip-ssl-validation \
--username "$OPSMAN_USERNAME" \
--password "$OPSMAN_PASSWORD" \
--format=json certificate-authorities | jq -r '.[0].cert_pem' > pcf_bosh_ca_cert.pem
If this command is run with
--format flag anywhere but in the end, we see the error below:
flag provided but not defined: -format
This indicates that the flag -format is not accepted globally.