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:
Brian Coca 2017-07-05 13:50:32 -04:00 committed by Brian Coca
commit 2a041d10d2
6 changed files with 36 additions and 101 deletions

View file

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