From 073851d32873e8ba54a58594846c6e65d0e9a3ff Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Mon, 3 Jun 2019 09:31:27 -0400 Subject: [PATCH] [queens-only] Write docker config scripts only if config exists Do not try to write docker config scripts if the docker_config_scripts.yaml doesn't exist. I832a2ec34f4ed4a87e30d0c88f4c60bcf2f4c151 was reverted so there is no default hash provided to the loop introduced in I1fc7431dfc662212b6ca64f4f738760f25b0c30b so the simplest patch (one-liner) is to run the task only when the file exist (like the previous fact which sets the var used). Another way to fix it would have been to revert the revert but it has proven to break some CI jobs, so this is the simplest way to fix it now. Change-Id: I67da243a7543dcea7af16e964810c4c32e8ecbe1 Closes-Bug: #1831455 --- common/deploy-steps-tasks.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/common/deploy-steps-tasks.yaml b/common/deploy-steps-tasks.yaml index 2a5f48a853..eb05221302 100644 --- a/common/deploy-steps-tasks.yaml +++ b/common/deploy-steps-tasks.yaml @@ -130,6 +130,7 @@ loop: "{{ role_data_docker_config_scripts | dictsort }}" loop_control: label: "{{ item[0] }}" + when: stat_docker_config_scripts.stat.exists tags: - container_config_scripts