From c1cff6dfdcbd21f71679f880cdeafb2bc336f6d9 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Tue, 2 Feb 2021 20:07:21 +0200 Subject: [PATCH] Fix lxc_hosts_container_image_url condition lxc_hosts_container_image_url is string, so can't be passed through bool filter as it will always result as false. Change-Id: I0f12760840d81c9d73118d63bc0927eab78b9df2 Closes-Bug: #1908544 (cherry picked from commit bd40afa00ad88c35b7916c9f9bf8f25c5fef0647) --- tasks/lxc_cache_prestage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/lxc_cache_prestage.yml b/tasks/lxc_cache_prestage.yml index 8230b24e..e6247dfd 100644 --- a/tasks/lxc_cache_prestage.yml +++ b/tasks/lxc_cache_prestage.yml @@ -49,7 +49,7 @@ delay: 1 until: image_url is success when: - - not lxc_hosts_container_image_url | bool + - lxc_hosts_container_image_url | length == 0 - _lxc_hosts_container_image_url_base is defined - _lxc_hosts_container_image_checksum_file is defined - _lxc_hosts_container_image_checksum_regexp is defined