Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: simplify distro check in tests_environments.yml
Simplify a distro check in tests_environments.yml to ease potentially adding more EL distros: - because of the short-circuiting of expressions, all the "or" conditions are run currently only on "CentOS" and "RedHat" - since CentOS Stream is the only "unversioned" EL distro, move its condition as the first after the distro check - drop the name check, leaving only the version check, in any other case (i.e. currently on "RedHat") This makes is possible to support more EL distros in this check, and in case they are versioned all it is needed is to tweak the first condition (i.e. the check for "ansible_distribution not in ..."). There is no behaviour change. Signed-off-by: Pino Toscano <[email protected]>
- Loading branch information