]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
common: fix retry on raw install python for rhel
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 22 Feb 2019 17:17:25 +0000 (18:17 +0100)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Mon, 25 Feb 2019 10:05:34 +0000 (10:05 +0000)
commitc43b30e3ceebabb5d2928f49c0f03e31bd9a5c68
tree54525a4328e8884e2a229cf694bed10f78e090b2
parent83d7ef777ec19eb5f96c553d869ec8ad90fd5061
common: fix retry on raw install python for rhel

when the following failure is thrown
```
    rhel-8.0.0-beta-1.7-     [===                 ] ---  B/s |   0  B     --:-- ETArhel-8.0.0-beta-1.7-appstream                   0.0  B/s |   0  B     00:00
    rhel-8.0.0-beta-1.7-     [===                 ] ---  B/s |   0  B     --:-- ETArhel-8.0.0-beta-1.7-baseos                      0.0  B/s |   0  B     00:00
    rhel-8.0.0-beta-1.7-     [   ===              ] ---  B/s |   0  B     --:-- ETArhel-8.0.0-beta-1.7-builder                     0.0  B/s |   0  B     00:00
    Failed to synchronize cache for repo 'rhel-8.0.0-beta-1.7-appstream', ignoring this repo.
    Failed to synchronize cache for repo 'rhel-8.0.0-beta-1.7-baseos', ignoring this repo.
    Failed to synchronize cache for repo 'rhel-8.0.0-beta-1.7-builder', ignoring this repo.
    No match for argument: python3
    Error: Unable to find a match
```

dnf returns 0 anyway.

Let's ensure the pattern 'Failed' isn't present in the output.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
raw_install_python.yml