From bd4f7fca2753679342f21250b54894907d4c8abf Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Fri, 11 Nov 2016 12:17:55 -0600 Subject: [PATCH] Fixing incorrect use of version_compare in docker integration test --- test/integration/targets/docker/tasks/docker-setup-rht.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/targets/docker/tasks/docker-setup-rht.yml b/test/integration/targets/docker/tasks/docker-setup-rht.yml index c25821c3be..4b3097053f 100644 --- a/test/integration/targets/docker/tasks/docker-setup-rht.yml +++ b/test/integration/targets/docker/tasks/docker-setup-rht.yml @@ -7,11 +7,11 @@ package: state: present name: nmap-ncat - when: ansible_distribution == 'Fedora' or (ansible_os_family == 'RedHat' and ansible_distribution_version|version_compare('>=', 7)) + when: ansible_distribution == 'Fedora' or (ansible_os_family == 'RedHat' and ansible_distribution_version|version_compare(7, '>=')) - name: Install netcat (RHEL) package: state: present name: nc - when: ansible_distribution != 'Fedora' and (ansible_os_family == 'RedHat' and ansible_distribution_version|version_compare('<', 7)) + when: ansible_distribution != 'Fedora' and (ansible_os_family == 'RedHat' and ansible_distribution_version|version_compare(7, '<'))