Browse Source

Fix ansible deprecation warnings

===
[DEPRECATION WARNING]: Using tests as filters is deprecated.
Instead of using `result|search` use `result is search`. This
feature will be removed in version 2.9.
===

Change-Id: I158a42b82d1818fa4e9296343b1b4ab787e8d89d
Jonathan Rosser 4 months ago
parent
commit
ede416aac3
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      tasks/glance_install.yml
  2. 1
    1
      tasks/glance_post_install.yml

+ 1
- 1
tasks/glance_install.yml View File

@@ -98,7 +98,7 @@
98 98
     section: "glance"
99 99
     option: "need_service_restart"
100 100
     value: true
101
-  when: (install_packages | changed) or
101
+  when: (install_packages is changed) or
102 102
         ('need_service_restart' not in ansible_local['openstack_ansible']['glance'])
103 103
 
104 104
 - name: Run the systemd service role

+ 1
- 1
tasks/glance_post_install.yml View File

@@ -121,4 +121,4 @@
121 121
       hour: "*"
122 122
     - name: "{{ glance_bin }}/glance-cache-cleaner"
123 123
       hour: "*/5"
124
-  when: glance_flavor | search("cache")
124
+  when: glance_flavor is search("cache")

Loading…
Cancel
Save