commit 1de1854bed64df83746f39a642a59d020e73820a
Author: Francesco Pantano <email address hidden>
Date: Mon Aug 3 09:21:50 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: Id16ccf69888ceb03cc33e0627de5270f9c8f4b95
Closes-Bug: #1889279
(cherry picked from commit 436671832b0ee8aed87ebd6c5ce45e18ec00710c)
Reviewed: https:/ /review. opendev. org/743598 /git.openstack. org/cgit/ openstack/ tripleo- validations/ commit/ ?id=1de1854bed6 4df83746f39a642 a59d020e73820a
Committed: https:/
Submitter: Zuul
Branch: stable/ussuri
commit 1de1854bed64df8 3746f39a642a59d 020e73820a
Author: Francesco Pantano <email address hidden>
Date: Mon Aug 3 09:21:50 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 ed87ebd6c5ce45e 18ec00710c)
Closes-Bug: #1889279
(cherry picked from commit 436671832b0ee8a