[jenkins-ci PATCH] guests: Don't use filters as conditionals

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Recent versions of Ansible point out this mistake too.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
To be applied on top of

  https://www.redhat.com/archives/libvir-list/2018-June/msg00685.html

Should have posted both at the same time as a series, but
it's too late for that now ¯\_(ツ)_/¯

 guests/tasks/base.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/guests/tasks/base.yml b/guests/tasks/base.yml
index 3793153..b774b29 100644
--- a/guests/tasks/base.yml
+++ b/guests/tasks/base.yml
@@ -21,14 +21,14 @@
     os_version: Sid
   when:
     - os_name == 'Debian'
-    - ansible_distribution_major_version|match("^.*/sid$")
+    - ansible_distribution_major_version is match("^.*/sid$")
 
 - name: Set additional facts (OS)
   set_fact:
     os_version: Current
   when:
     - ansible_distribution == 'FreeBSD'
-    - ansible_distribution_release|match("^.*-CURRENT$")
+    - ansible_distribution_release is match("^.*-CURRENT$")
 
 - name: Set additional facts (package format)
   set_fact:
-- 
2.17.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux