Comment 6 for bug 1889279

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-validations (stable/ussuri)

Reviewed: https://review.opendev.org/743598
Committed: https://git.openstack.org/cgit/openstack/tripleo-validations/commit/?id=1de1854bed64df83746f39a642a59d020e73820a
Submitter: Zuul
Branch: stable/ussuri

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)