From 4657680f9ed01088f619d3352d9359a1a491c536 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Wed, 3 Jun 2020 11:42:56 -0400 Subject: [PATCH] Get sanity tests to work for ansible.tower and Ansible 2.10 --- awx_collection/tools/roles/template_galaxy/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/awx_collection/tools/roles/template_galaxy/tasks/main.yml b/awx_collection/tools/roles/template_galaxy/tasks/main.yml index 4f018d793b..4edd056f43 100644 --- a/awx_collection/tools/roles/template_galaxy/tasks/main.yml +++ b/awx_collection/tools/roles/template_galaxy/tasks/main.yml @@ -30,6 +30,13 @@ path: "{{ collection_path }}/plugins/inventory/tower.py" regexp: "^ NAME = 'awx.awx.tower' # REPLACE$" replace: " NAME = '{{ collection_namespace }}.{{ collection_package }}.tower' # REPLACE" + + - name: Get sanity tests to work with non-default name + lineinfile: + path: "{{ collection_path }}/tests/sanity/ignore-2.10.txt" + state: absent + regexp: ' pylint:wrong-collection-deprecated-version-tag$' + when: - (collection_package != 'awx') or (collection_namespace != 'awx')