Get sanity tests to work for ansible.tower and Ansible 2.10

This commit is contained in:
AlanCoding
2020-06-03 11:42:56 -04:00
parent 86f1ba984a
commit 4657680f9e

View File

@@ -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')