Installroot OS version check fix (#20180)

Cast to int before checking the OS version.
This prevents the DNF tests from running on
Fedora < 23
This commit is contained in:
berenddeschouwer 2017-01-13 04:02:35 +02:00 committed by Matt Davis
commit b1c57ea443
2 changed files with 3 additions and 3 deletions

View file

@ -28,5 +28,5 @@
# It will always run with $releasever unset
- include: 'yuminstallroot.yml'
when: (ansible_distribution in ['RedHat', 'CentOS', 'ScientificLinux'] or
(ansible_distribution in ['Fedora'] and ansible_distribution_major_version < 23)) and
(ansible_distribution in ['Fedora'] and ansible_distribution_major_version|int < 23)) and
ansible_python.version.major == 2