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