Make Get OSD stat percentage compatible with jq < 1.5
On upgrades we're using validations (from train) against controller that
are still on queens. On queens jq package is <1.5 and the "try" keyword
is not available.
This purpose of this change is to fix this validations getting rid of
"try-catch" in favour of "if-else" which works for 1.3+ < jq < 1.5.
Reviewed: https:/ /review. opendev. org/743592 /git.openstack. org/cgit/ openstack/ tripleo- validations/ commit/ ?id=6c19d1bcdfc 67ae38949594416 84e62221ef620f
Committed: https:/
Submitter: Zuul
Branch: master
commit 6c19d1bcdfc67ae 3894959441684e6 2221ef620f
Author: Francesco Pantano <email address hidden>
Date: Tue Jul 28 18:44:54 2020 +0200
Make Get OSD stat percentage compatible with jq < 1.5
On upgrades we're using validations (from train) against controller that
are still on queens. On queens jq package is <1.5 and the "try" keyword
is not available.
This purpose of this change is to fix this validations getting rid of
"try-catch" in favour of "if-else" which works for 1.3+ < jq < 1.5.
Change-Id: Id16ccf69888ceb 03cc33e0627de52 70f9c8f4b95
Closes-Bug: #1889279