From 03d1b56a8f43eb7e2299fa7c5f28176527789fe5 Mon Sep 17 00:00:00 2001
From: Sergey <s.bondarev@southbridge.ru>
Date: Mon, 16 Mar 2020 13:34:35 +0300
Subject: [PATCH] fix check exists download cache (#5776)

---
 roles/download/tasks/download_container.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/download/tasks/download_container.yml b/roles/download/tasks/download_container.yml
index 2e804d544..1215911d0 100644
--- a/roles/download/tasks/download_container.yml
+++ b/roles/download/tasks/download_container.yml
@@ -42,7 +42,7 @@
 
     - name: Stop if image not in cache on ansible host when download_force_cache=true
       assert:
-        that: not image_is_cached
+        that: image_is_cached
         msg: "Image cache file {{ image_path_cached }} not found for {{ image_reponame }} on localhost"
       when:
         - download_force_cache
-- 
GitLab