From 39776cfdd9ffe6a426d76022cd2bce91ff7a90eb Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Sun, 27 Sep 2020 19:41:39 +0300 Subject: [PATCH] Make sure that we pass list in loop map returns a generator that needs to be converted to a list for the loop. We also don't need unique as this is iterating over a list of directory names that must already be unique. Change-Id: Ibd22d79be29aaa9d3a7924319c59929e665f9cbc --- roles/ensure-python/tasks/stow.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ensure-python/tasks/stow.yaml b/roles/ensure-python/tasks/stow.yaml index 8d41fdf36..f7a15c775 100644 --- a/roles/ensure-python/tasks/stow.yaml +++ b/roles/ensure-python/tasks/stow.yaml @@ -7,7 +7,7 @@ - name: Activate stow command: "stow -d {{ python_stow_dir }} -S {{ zj_stow_env | basename }}" - loop: "{{ stow_envs.files | map(attribute='path') | unique }}" + loop: "{{ stow_envs.files | map(attribute='path') | list }}" loop_control: loop_var: zj_stow_env when: python_version in item