From 5e7f3e65dad826114574844fe77710ea27a359e1 Mon Sep 17 00:00:00 2001 From: Timothy Schroeder Date: Wed, 23 Oct 2024 13:16:59 -0700 Subject: [PATCH] fix: Use default registry credentials when they are set (#317) --- lib/kitchen/driver/dokken.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/kitchen/driver/dokken.rb b/lib/kitchen/driver/dokken.rb index e956de3..bafdb69 100644 --- a/lib/kitchen/driver/dokken.rb +++ b/lib/kitchen/driver/dokken.rb @@ -495,7 +495,8 @@ def docker_creds_for_image(image) c = docker_config_creds[image_registry] c.respond_to?(:call) ? c.call : c elsif docker_config_creds.key?(default_registry) - docker_config_creds[default_registry] + c = docker_config_creds[default_registry] + c.respond_to?(:call) ? c.call : c end end