Skip to content

Compare RHEL version as integer when having custom packages#1946

Open
araujorm wants to merge 1 commit intowazuh:4.14.4from
araujorm:4.14.4
Open

Compare RHEL version as integer when having custom packages#1946
araujorm wants to merge 1 commit intowazuh:4.14.4from
araujorm:4.14.4

Conversation

@araujorm
Copy link

This fixes yum module being used instead of dnf on RHEL and clones >= 10. Otherwise, as the comparison is made as a string, "10" is always < "8" (and not the expected 10 >= 8).

Despite this, without this fix the playbook still works when the RHEL 10 installation has the appropriate yum wrapper installed, but it's not the best approach to mandate that, and on minimal installs that may not always be the case so the playbook shouldn't depend on it.

Fixes yum module being used instead of dnf on RHEL and clones >= 10.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant