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: If7ca8c8e749209ca3e021fd4604ff809d9e3a5db
This commit is contained in:
Jonathan Rosser 2018-12-03 17:18:45 +00:00
parent ecff328ed6
commit 8634532731
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@
- include_tasks: repo_clone_git.yml
when:
- (repo_build_git_reclone | bool) or
(_wheel_build_requirements | changed)
(_wheel_build_requirements is changed)
tags:
- repo-clone-repos

View File

@ -1,7 +1,7 @@
{% for item in manifest_items['files'] %}
{% set item_cleaned = item['path'] | regex_replace(repo_build_base_path ~ "/", '') %}
{% set item_basename = item_cleaned | basename %}
{% if item_cleaned | match(repo_build_release_version_path + "/.*/.*\.whl") %}
{% if item_cleaned is match(repo_build_release_version_path + "/.*/.*\.whl") %}
{{ repo_build_pool_dir | regex_replace(repo_build_base_path ~ "/", '') }}/{{ item_basename.split('-')[0] }}/{{ item_basename | lower }}
{{ item_cleaned | lower }}
{% else %}