Remove warning when no base venvs are found
During the "Destroy base venvs to rebuild them" step ansible tries to access base_venvs.stdout_lines. If no base_venvs have been registered previously, this causes a deprecation warning because stdout_lines is undefined. This is a small fix to remove this warning by giving an empty list as default value when stdout_lines is not defined. TrivialFix Change-Id: I358709f3d4dc10a60f59976f1c4fbf87705def57
This commit is contained in:
parent
a67b598db4
commit
851e3ffd09
|
@ -38,7 +38,7 @@
|
|||
file:
|
||||
path: "{{ item }}"
|
||||
state: "absent"
|
||||
with_items: "{{ base_venvs.stdout_lines }}"
|
||||
with_items: "{{ base_venvs.stdout_lines|default([]) }}"
|
||||
tags:
|
||||
- repo-create-venv-location
|
||||
- repo-venv-compress-archive
|
||||
|
|
Loading…
Reference in New Issue