Fix deprecation warning

TASK [os_rally : Create/upgrade Rally DB schema] ***********
[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.
Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.

Change-Id: I2b09e3cde1d2dd51f2d352d4eb57a90751fe854f
This commit is contained in:
Jonathan Herlin 2019-07-08 16:57:59 +02:00
parent 15c7e61436
commit e1bfdcec89
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
- name: Create/upgrade Rally DB schema
command: "{{ rally_bin }}/rally-manage db create"
when:
- rally_deployment_list_result.stdout | search("Database is missing")
- rally_deployment_list_result.stdout is search("Database is missing")
- name: Check for existing Rally deployment
command: "{{ rally_bin }}/rally deployment list"
@ -36,7 +36,7 @@
. {{ rally_bin }}/activate
{{ rally_bin }}/rally deployment create --fromenv --name=existing
when:
- rally_deployment_list_result.stdout | search("There are no deployments")
- rally_deployment_list_result.stdout is search("There are no deployments")
tags:
# don't trigger ANSIBLE0013
- skip_ansible_lint