From 4b9f98f93305f92b951e934605691307c497923d Mon Sep 17 00:00:00 2001 From: Pavel Martynov Date: Tue, 18 May 2021 16:29:31 +0300 Subject: [PATCH] Fix pull_by_digest variable type to boolean instead of str (#7612) --- roles/download/tasks/set_container_facts.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/download/tasks/set_container_facts.yml b/roles/download/tasks/set_container_facts.yml index 68ad194d9..2b6640229 100644 --- a/roles/download/tasks/set_container_facts.yml +++ b/roles/download/tasks/set_container_facts.yml @@ -5,8 +5,7 @@ - name: set_container_facts | Set if containers should be pulled by digest set_fact: - pull_by_digest: >- - {%- if download.sha256 is defined and download.sha256 -%}true{%- else -%}false{%- endif -%} + pull_by_digest: "{{ download.sha256 is defined and download.sha256 }}" - name: set_container_facts | Define by what name to pull the image set_fact: