From b564d1775d145e70c90acf5715439952bb696aad Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Mon, 3 Dec 2018 17:22:58 +0000 Subject: [PATCH] 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: I8e856ecaeb82446785dbdcd23688bb0db0a30857 --- tasks/keystone_credential_create.yml | 2 +- tasks/keystone_install.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/keystone_credential_create.yml b/tasks/keystone_credential_create.yml index 9ed1b647..ae684880 100644 --- a/tasks/keystone_credential_create.yml +++ b/tasks/keystone_credential_create.yml @@ -40,7 +40,7 @@ {% endif -%} {% endfor -%} {{ _var }} - when: not credential_key_list | skipped + when: not credential_key_list is skipped - name: Collect the existing keys from containers slurp: diff --git a/tasks/keystone_install.yml b/tasks/keystone_install.yml index 15eddc85..100bb7a0 100644 --- a/tasks/keystone_install.yml +++ b/tasks/keystone_install.yml @@ -136,7 +136,7 @@ state: "True" - name: "install_method" state: "{{ keystone_install_method }}" - when: (install_packages | changed) or + when: (install_packages is changed) or (ansible_local is not defined) or ('openstack_ansible' not in ansible_local) or ('keystone' not in ansible_local['openstack_ansible']) or