From 8bdb78476d829b34bdd68c25a6669e7c471ade6e Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 24 Jun 2021 10:49:23 -0700 Subject: [PATCH] Fix default value for zuul_artifacts The case where this isn't set isn't exercised by the tests, so we missed this. We need to supply an empty list of artifacts to iterate over if there are no zuul artifacts. Change-Id: I082e3546ddc0ff57386063a4f697ae6584db9f90 --- roles/pull-from-intermediate-registry/vars/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/pull-from-intermediate-registry/vars/main.yaml b/roles/pull-from-intermediate-registry/vars/main.yaml index 9e9c6f45f..553a201a7 100644 --- a/roles/pull-from-intermediate-registry/vars/main.yaml +++ b/roles/pull-from-intermediate-registry/vars/main.yaml @@ -1,3 +1,3 @@ # The tests override this variable, which is why we don't use # zuul.artifacts directly. -zuul_artifacts: "{{ zuul.artifacts }}" +zuul_artifacts: "{{ zuul.artifacts | default([]) }}"