Commit 5291f683 by stu

add default for function output

parent d79efc9f
...@@ -28,7 +28,11 @@ ...@@ -28,7 +28,11 @@
- name: Verify build tools installed - name: Verify build tools installed
stat: path={{ android_home }}/{{ item }} stat: path={{ android_home }}/{{ item }}
register: android_package_stats register: android_package_stats
with_items: "{{ android_test_paths.function_output }}" # When this task is skipped, ansible still tries to resolve the variable
# returned from zip_to_list, but cannot. Add a default value to avoid these
# failures when other tasks are run, but not mask true failures when this
# task is run.
with_items: "{{ android_test_paths.function_output | default(['non-existent-package']) }}"
- with_items: "{{ android_package_stats.results }}" - with_items: "{{ android_package_stats.results }}"
assert: assert:
that: that:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment