Don't enable module stream in rhel9

On Rhel-9, modules streams are no longer shipped. Updating condition
with this patch to only try to enable module stream for rhel-8 case.

Closes-Bug: #1956449
Change-Id: I4b9bc141925f9ef9ec790b4c790df2aaf4fedd2d
This commit is contained in:
Sandeep Yadav 2022-01-07 21:10:05 +05:30
parent 8a88f495ae
commit 6688b56221
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ tcib_actions:
crudini --set /etc/dnf/dnf.conf main skip_missing_names_on_install False &&
crudini --set /etc/dnf/dnf.conf main tsflags nodocs
- run: >-
if [ '{{ tcib_distro }}' == 'rhel' ]; then
if [ '{{ tcib_distro }}' == 'rhel' && '{{ tcib_release }}' == '8' ]; then
{%- if "el" ~ tcib_release in tcib_packages.modules %}
{% for item in tcib_packages.modules["el" ~ tcib_release] %}{% set key, value = (item.items() | list).0 %}dnf module -y {{ key }} {{ value }}; {% endfor %}
{%- else %}