Comment 5 for bug 1889279

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

Reviewed: https://review.opendev.org/743572
Committed: https://git.openstack.org/cgit/openstack/tripleo-validations/commit/?id=5dcaa10e894438fbc3b0cd6ba48a2407081d8613
Submitter: Zuul
Branch: stable/train

commit 5dcaa10e894438fbc3b0cd6ba48a2407081d8613
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: Iddea0c21da194ef7cbe781d4fc4ad932f6fc2c14
    Closes-Bug: #1889279
    (cherry picked from commit 436671832b0ee8aed87ebd6c5ce45e18ec00710c)