mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
better backwards compat handling of status
restored 'rc' inspection but only when failed is not specified removed redundant changed from basic.py as task_executor already adds removed redundant filters, they are tests added aliases to tests removed from filters fixed test to new rc handling
This commit is contained in:
parent
fba76444e0
commit
2a041d10d2
6 changed files with 36 additions and 101 deletions
|
@ -108,11 +108,11 @@
|
|||
args:
|
||||
chdir: '{{ checkout_dir }}'
|
||||
|
||||
- name: make sure the old commit was not fetched
|
||||
- name: "make sure the old commit was not fetched, task is 'forced success'"
|
||||
assert:
|
||||
that:
|
||||
- 'checkout_shallow.rc != 0'
|
||||
- checkout_shallow|failed
|
||||
- checkout_shallow|success
|
||||
when: git_version.stdout | version_compare("{{git_version_supporting_depth}}", '>=')
|
||||
|
||||
- name: clear checkout_dir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue