Skip to content

Commit

Permalink
fix failed run exit code when clean_dokken_sandbox is false (#319)
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Hemminger <[email protected]>
  • Loading branch information
Stromweld authored Mar 21, 2024
1 parent 9cf9a65 commit 1035b97
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/kitchen/provisioner/dokken.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1035b97

Please sign in to comment.