From 5aac0aecb50eb039c76234a0f65423603c013407 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Wed, 15 Jan 2020 18:21:12 -0500 Subject: [PATCH] Revert "tripleo-container-image: add |list to containers_commands" It doesn't work as expected, we need to do default([]). This reverts commit b2287480a300cf0e115e8e941934cdb9adb797f7. Change-Id: I6997af78f6fddac7811de67162a6b673c9897f57 (cherry picked from commit 556fbb8b3adb18454b4aa81c0ab682c100e73308) --- .../roles/tripleo-container-manage/tasks/podman/create.yml | 2 +- .../roles/tripleo-container-manage/tasks/podman/exec.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tripleo_ansible/roles/tripleo-container-manage/tasks/podman/create.yml b/tripleo_ansible/roles/tripleo-container-manage/tasks/podman/create.yml index f56713720..c852f15f4 100644 --- a/tripleo_ansible/roles/tripleo-container-manage/tasks/podman/create.yml +++ b/tripleo_ansible/roles/tripleo-container-manage/tasks/podman/create.yml @@ -110,7 +110,7 @@ var: containers_commands - name: "Append the list of all podman commands that are run for containers with changes" set_fact: - all_containers_commands: "{{ containers_commands|list + (all_containers_commands | default([]) | list) }}" + all_containers_commands: "{{ containers_commands + (all_containers_commands | default([]) | list) }}" - name: "Print the list of containers which changed" debug: diff --git a/tripleo_ansible/roles/tripleo-container-manage/tasks/podman/exec.yml b/tripleo_ansible/roles/tripleo-container-manage/tasks/podman/exec.yml index 548b5823f..ef26d94e7 100644 --- a/tripleo_ansible/roles/tripleo-container-manage/tasks/podman/exec.yml +++ b/tripleo_ansible/roles/tripleo-container-manage/tasks/podman/exec.yml @@ -63,4 +63,4 @@ var: containers_commands - name: "Append the list of all podman commands that are run for containers with changes" set_fact: - all_containers_commands: "{{ containers_commands|list + (all_containers_commands | default([]) | list) }}" + all_containers_commands: "{{ containers_commands + (all_containers_commands | default([]) | list) }}"