From 1035b971a7685633e126084f731a334b492727e2 Mon Sep 17 00:00:00 2001 From: Corey Hemminger Date: Thu, 21 Mar 2024 09:31:41 -0500 Subject: [PATCH] fix failed run exit code when clean_dokken_sandbox is false (#319) Signed-off-by: Corey Hemminger --- lib/kitchen/provisioner/dokken.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/kitchen/provisioner/dokken.rb b/lib/kitchen/provisioner/dokken.rb index a665c88..222becf 100644 --- a/lib/kitchen/provisioner/dokken.rb +++ b/lib/kitchen/provisioner/dokken.rb @@ -74,9 +74,7 @@ def call(state) rescue Kitchen::Transport::TransportFailed => ex raise ActionFailed, ex.message ensure - return unless config[:clean_dokken_sandbox] # rubocop: disable Lint/EnsureReturn - - cleanup_dokken_sandbox + cleanup_dokken_sandbox if config[:clean_dokken_sandbox] # rubocop: disable Lint/EnsureReturn end def validate_config