From 0b464b5239c69f1e4c2d197b525d90be04920ec0 Mon Sep 17 00:00:00 2001
From: peterw <12556909+pedro-peter@users.noreply.github.com>
Date: Fri, 17 May 2024 12:39:24 +0100
Subject: [PATCH] crio container runtime crio_registries path fix (#11030)

---
 roles/container-engine/cri-o/tasks/main.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/container-engine/cri-o/tasks/main.yaml b/roles/container-engine/cri-o/tasks/main.yaml
index 61105f401..2d73e74e2 100644
--- a/roles/container-engine/cri-o/tasks/main.yaml
+++ b/roles/container-engine/cri-o/tasks/main.yaml
@@ -169,7 +169,7 @@
 - name: Cri-o | write registries configs
   template:
     src: registry.conf.j2
-    dest: "/etc/containers/registries.conf.d/10-{{ item.prefix | default(item.location) | regex_replace(':', '_') }}.conf"
+    dest: "/etc/containers/registries.conf.d/10-{{ item.prefix | default(item.location) | regex_replace(':|/', '_') }}.conf"
     mode: 0644
   loop: "{{ crio_registries }}"
   notify: Restart crio
-- 
GitLab