Skip to content

Commit

Permalink
Update template.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
abikouo authored Apr 22, 2021
1 parent 92b6e4b commit 0ceef69
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions molecule/default/tasks/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,8 @@
assert:
that:
- resource is successful
- resource_changed | length > 0
- resource_failed | length > 0
vars:
resource_changed: "{{ resource.result.results | json_query('[?changed==`true`]') }}"
resource_failed: "{{ resource.result.results | json_query('[?error]') }}"
- resource.result.results | selectattr('changed') | length == 1
- resource.result.results | selectattr('error', 'defined') | length == 1

- name: Remove Pod (Cleanup)
kubernetes.core.k8s:
Expand Down

0 comments on commit 0ceef69

Please sign in to comment.