ansible-role-tripleo-modify.../templates
Julie Pichon bb6f78deca Add double quotes around the printf statements in yum_update.sh
This is consistent with the other printf statements in the file. This
keeps the sorted data with the newlines as they are, and avoids
breaking down the data again. Otherwise, the sorting order can be
altered which breaks comm comparison and causes the "Run yum_update.sh"
task to fail with the following error:

    "stderr_lines": [
        "comm: file 2 is not in sorted order",
        "error while running runtime: exit status 1"
    ],

This is particularly important for the $available variable which
contains the repoquery output, often very large and with unusual
characters. The error happens consistently when including RHEL 7 server
repos or RHEL 8 BaseOS repo and prevents the update from working at
all.

This patch also adds -u when sorting the $available output. Once the
versions are removed with cut, there can be a tremendous amount of
duplication in the data obtained from repoquery. That makes verbose
mode even more difficult to navigate when debugging.

Change-Id: Id64a8c2e395de28945d5d6b4370c44b80392e543
2020-01-30 09:28:23 +00:00
..
Dockerfile-dev.j2 Fix dev install (yum -y...) 2019-02-20 14:41:15 +00:00
Dockerfile-rpm.j2 Set WORKDIR / in the dockerfiles 2018-11-13 17:18:24 +13:00
Dockerfile-yum-install.j2 Implement a yum install command 2019-07-03 17:45:21 -06:00
Dockerfile-yum.j2 Dockerfile-yum.j2 doesn't copy the RPMs so yum_update.sh fails 2020-01-17 17:47:17 -05:00
yum_update.sh.j2 Add double quotes around the printf statements in yum_update.sh 2020-01-30 09:28:23 +00:00